关于QQ互联多域名无法登录,需要转换才能登录的问题!

GEEKZHU 梓沅沐 关注 五级站长 VIP
发表于用户提问版块 资深问题
现在很多开发者为了减少单个域名的负担,将自己的网站设置为多域名网站,但是一个QQ互联只能对应一个网站,剩下的域名无法使用QQ互联登录,现在有一个方法可以实现域名转换,希望老大能直接坐在QQ登录模板里面去,方便小白使用 我也是小白啊,下面教程来自百度,由于发布字数原因余下全文就外加链接了!


简介

本篇教程不仅仅是qq登录教程,关键问题还有解决一个多域名共用一个qq登录问题。

网站做大了,很多网站开始给用户提供一个二级域名的主页。或者自己本身就有很多二级域名子站。而腾讯申请qq登录时候,并不能把这些二级域名都加入允许的域名列表。毕竟很多情况下还不确定二级域名。

这个时候,我们也不能申请很多qq登录,不现实。今天主要就讲解下此种情况下的解决方案。

域名转换

解决该问题的一个核心方法就是域名转换。就是在qq登录之前,先跳转到具有qq登录权限的域名下。让其帮我获取信息,之后再跳转回原域名。

假设我有一个可以qq登录的域名:bidianer.com。当我处于一个其他域名或者二级域名的时候,假设是weiya.me,这个时候我直接跳转腾讯,肯定是有问题的。

所以,第一步我先从weiya.me跳转bidianer.com域名下面的一个方法,然后通过bidianer.com下的方法进行一次跳转,获取到code后。跳转回之前域名weiya.me,同时在url中带上code,这样就和从腾讯那里过来的一样。

这里解释下为什么拿到code之后万事大吉。因为,拿到code之后,你获取用户信息什么的,腾讯是不限制来源域名的。哪怕你web版本拿到,你到app去请求也没人管你。


余下全文

评论列表 评论
GEEKZHU 梓沅沐 五级站长 VIP 3#

素我不能理解,为什么发布了是这样的!!!


现在很多开发者为了减少单个域名的负担,将自己的网站设置为多域名网站,但是一个QQ互联只能对应一个网站,剩下的域名无法使用QQ互联登录,现在有一个方法可以实现域名转换,希望老大能直接坐在QQ登录模板里面去,方便小白使用 我也是小白啊,下面教程来自百度,由于发布字数原因余下全文就外加链接了!


全文地址:http://www.geekbird.cn/index.php?c=read&id=92&page=1

共0条回复,点击查看回复
dachao dachao 四级站长 VIP 6#
看看什么问题!
共0条回复,点击查看回复
看看 看看 五级站长 普通 5#
学习学习
共0条回复,点击查看回复
z2430388643 梦寐网络 萌新驾到 普通 4#
共0条回复,点击查看回复
GEEKZHU 梓沅沐 五级站长 VIP 2#
现在很多开发者为了减少单个域名的负担,将自己的网站设置为多域名网站,但是一个QQ互联只能对应一个网站,剩下的域名无法使用QQ互联登录,现在有一个方法可以实现域名转换,希望老大能直接坐在QQ登录模板里面去,方便小白使用 我也是小白啊,下面教程来自百度,由于发布字数原因余下全文就外加链接了!<p><br></p><p><h2 id="articleHeader0" style="padding-bottom: 10px; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft Yahei&quot;, sans-serif; font-weight: 500; line-height: 1.2; font-size: 1.75em; border-bottom: 1px solid rgb(238, 238, 238); background-color: rgb(255, 255, 255);">简介</h2><p style="margin-top: 1.5em; margin-bottom: 1.5em; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft Yahei&quot;, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">本篇教程不仅仅是qq登录教程,关键问题还有解决一个多域名共用一个qq登录问题。</p><p style="margin-top: 1.5em; margin-bottom: 1.5em; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft Yahei&quot;, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">网站做大了,很多网站开始给用户提供一个二级域名的主页。或者自己本身就有很多二级域名子站。而腾讯申请qq登录时候,并不能把这些二级域名都加入允许的域名列表。毕竟很多情况下还不确定二级域名。</p><p style="margin-top: 1.5em; margin-bottom: 1.5em; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft Yahei&quot;, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">这个时候,我们也不能申请很多qq登录,不现实。今天主要就讲解下此种情况下的解决方案。</p><h2 id="articleHeader1" style="margin-top: 1.5em; padding-bottom: 10px; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft Yahei&quot;, sans-serif; font-weight: 500; line-height: 1.2; font-size: 1.75em; border-bottom: 1px solid rgb(238, 238, 238); background-color: rgb(255, 255, 255);">域名转换</h2><p style="margin-top: 1.5em; margin-bottom: 1.5em; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft Yahei&quot;, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">解决该问题的一个核心方法就是域名转换。就是在qq登录之前,先跳转到具有qq登录权限的域名下。让其帮我获取信息,之后再跳转回原域名。</p><p style="margin-top: 1.5em; margin-bottom: 1.5em; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft Yahei&quot;, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);"><img data-src="/img/bVGmCJ?w=704&amp;h=392" src="https://segmentfault.com/img/bVGmCJ?w=704&amp;h=392" style="padding: 3px; border-width: 1px; border-style: solid; border-color: rgb(221, 221, 221); vertical-align: middle; max-width: 100%; cursor: pointer; display: inline; position: static !important;"></p><p style="margin-top: 1.5em; margin-bottom: 1.5em; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft Yahei&quot;, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">假设我有一个可以qq登录的域名:<code style="padding: 2px 4px; font-family: &quot;Source Code Pro&quot;, Consolas, Menlo, Monaco, &quot;Courier New&quot;, monospace; font-size: 0.93em; width: 909px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 3px;">bidianer.com</code>。当我处于一个其他域名或者二级域名的时候,假设是<code style="padding: 2px 4px; font-family: &quot;Source Code Pro&quot;, Consolas, Menlo, Monaco, &quot;Courier New&quot;, monospace; font-size: 0.93em; width: 909px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 3px;">weiya.me</code>,这个时候我直接跳转腾讯,肯定是有问题的。</p><p style="margin-top: 1.5em; margin-bottom: 1.5em; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft Yahei&quot;, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">所以,第一步我先从<code style="padding: 2px 4px; font-family: &quot;Source Code Pro&quot;, Consolas, Menlo, Monaco, &quot;Courier New&quot;, monospace; font-size: 0.93em; width: 909px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 3px;">weiya.me</code>跳转<code style="padding: 2px 4px; font-family: &quot;Source Code Pro&quot;, Consolas, Menlo, Monaco, &quot;Courier New&quot;, monospace; font-size: 0.93em; width: 909px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 3px;">bidianer.com</code>域名下面的一个方法,然后通过<code style="padding: 2px 4px; font-family: &quot;Source Code Pro&quot;, Consolas, Menlo, Monaco, &quot;Courier New&quot;, monospace; font-size: 0.93em; width: 909px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 3px;">bidianer.com</code>下的方法进行一次跳转,获取到<code style="padding: 2px 4px; font-family: &quot;Source Code Pro&quot;, Consolas, Menlo, Monaco, &quot;Courier New&quot;, monospace; font-size: 0.93em; width: 909px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 3px;">code</code>后。跳转回之前域名<code style="padding: 2px 4px; font-family: &quot;Source Code Pro&quot;, Consolas, Menlo, Monaco, &quot;Courier New&quot;, monospace; font-size: 0.93em; width: 909px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 3px;">weiya.me</code>,同时在url中带上<code style="padding: 2px 4px; font-family: &quot;Source Code Pro&quot;, Consolas, Menlo, Monaco, &quot;Courier New&quot;, monospace; font-size: 0.93em; width: 909px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 3px;">code</code>,这样就和从腾讯那里过来的一样。</p><p style="margin-top: 1.5em; margin-bottom: 1.5em; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft Yahei&quot;, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">这里解释下为什么拿到<code style="padding: 2px 4px; font-family: &quot;Source Code Pro&quot;, Consolas, Menlo, Monaco, &quot;Courier New&quot;, monospace; font-size: 0.93em; width: 909px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 3px;">code</code>之后万事大吉。因为,拿到<code style="padding: 2px 4px; font-family: &quot;Source Code Pro&quot;, Consolas, Menlo, Monaco, &quot;Courier New&quot;, monospace; font-size: 0.93em; width: 909px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 3px;">code</code>之后,你获取用户信息什么的,腾讯是不限制来源域名的。哪怕你web版本拿到,你到app去请求也没人管你。</p></p><p><br></p><p><a target="_blank" href="http://www.geekbird.cn/index.php?c=read&amp;id=92&amp;page=1"><font size="7" color="#cc6666"><b><u>余下全文</u></b></font></a></p>
共0条回复,点击查看回复
发布评论

评论: 关于QQ互联多域名无法登录,需要转换才能登录的问题!

已有0次打赏
(5) 分享
分享

请保存二维码或复制链接进行分享

取消