修复 新触屏版的QQ登陆问题

This commit is contained in:
Comsenz 2017-10-23 12:37:35 +08:00
parent b40cb4925c
commit 454e54a749
3 changed files with 3 additions and 2 deletions

View File

@ -16,6 +16,7 @@ if($_GET['mod'] == 'register') {
define('APPTYPEID', 126);
define('CURSCRIPT', 'connect');
define('NOT_IN_MOBILE_API', 1);
require_once './source/class/class_core.php';
require_once './source/function/function_home.php';

View File

@ -787,7 +787,7 @@ class discuz_application extends discuz_base{
}
dheader("location:$mobileurl");
}
if($this->var['setting']['mobile']['allowmnew'] && !defined('IN_MOBILE_API')) {
if($this->var['setting']['mobile']['allowmnew'] && !defined('IN_MOBILE_API') && !defined('NOT_IN_MOBILE_API')) {
dheader("location:".$this->var['siteurl'].'m/');
}
if($mobile === '3' && empty($this->var['setting']['mobile']['wml'])) {

View File

@ -130,7 +130,7 @@ var login = {
TOOLS.openNewPage(DOMAIN + 'member.php?mod=' + login.regname + '&mobile=2');
});
$('.qqLogin').on('click', function () {
var url = DOMAIN + 'plugin.php?id=qqconnect:connect&op=init'+ '&referer=' + encodeURIComponent(location.search);
var url = DOMAIN + 'connect.php?mod=login&op=init&referer=' + encodeURIComponent(location.search);
TOOLS.openNewPage(url);
});
$('.wxLogin').on('click', function () {