由于QQ互联官方接口的升级,原有旧接口(oAuth1 接口)在一定条件下已经无法使用
凡是出现此错误的 Discuz! 论坛必须开启 QQ 互联 的 oAuth2 模式,且保证服务器能正常访问 https 的外部文件
在确保服务器 SSL 功能正常的情况下,下载本帖所附的文件,更新到 QQ互联插件目录(source/plugin/qqconnect),然后访问 URL
- http://yourwebsite/plugin.php?id=qqconnect:oauth_switch
复制代码 切换到 oAuth2 模式
切换完毕后删除 oauth_switch.inc.php 文件
oauth_switch.inc.php 文件内容
- <?php
- $connect = C::t('common_setting')->fetch('connect', true);
- $connect['oauth2'] = 1;
- C::t('common_setting')->update('connect', serialize($connect));
- include_once libfile('function/cache');
- updatecache('setting');
- showmessage('Switch oAuth to oAuth2', $_G['siteurl']);
- ?>
复制代码
|