diff --git a/upload/connect.php b/upload/connect.php index 725a9af..bf056ed 100644 --- a/upload/connect.php +++ b/upload/connect.php @@ -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'; diff --git a/upload/source/class/discuz/discuz_application.php b/upload/source/class/discuz/discuz_application.php index 7a8c6d6..6208012 100644 --- a/upload/source/class/discuz/discuz_application.php +++ b/upload/source/class/discuz/discuz_application.php @@ -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'])) { diff --git a/upload/template/default/m/js/login.js b/upload/template/default/m/js/login.js index 93367ce..37ccf7e 100644 --- a/upload/template/default/m/js/login.js +++ b/upload/template/default/m/js/login.js @@ -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 () {