由於本身在開發的時候遇到了,解決方式就是移動端不發送郵箱驗證。html
修改 class_member.php
文件:this
// if ($sendurl) {// 原代碼 if ($sendurl && !defined('IN_MOBILE')) {// 非移動端才發送郵件 $hashstr = urlencode ( authcode ( "$_GET[email]\t$_G[timestamp]", 'ENCODE', $_G ['config'] ['security'] ['authkey'] ) ); $registerurl = "{$_G[siteurl]}member.php?mod=" . $this->setting ['regname'] . "&hash={$hashstr}&email={$_GET[email]}"; $email_register_message = lang ( 'email', 'email_register_message', array ( 'bbname' => $this->setting ['bbname'], 'siteurl' => $_G ['siteurl'], 'url' => $registerurl ) ); if (! sendmail ( "$_GET[email] <$_GET[email]>", lang ( 'email', 'email_register_subject' ), $email_register_message )) { runlog ( 'sendmail', "$_GET[email] sendmail failed." ); } showmessage ( 'register_email_send_succeed', dreferer (), array ( 'bbname' => $this->setting ['bbname'] ), array ( 'showdialog' => false, 'msgtype' => 3, 'closetime' => 10 ) ); } $emailstatus = 0; if ($this->setting ['sendregisterurl'] && ! $sendurl) { $_GET ['email'] = strtolower ( $hash [0] ); $this->setting ['regverify'] = $this->setting ['regverify'] == 1 ? 0 : $this->setting ['regverify']; if (! $this->setting ['regverify']) { $groupinfo ['groupid'] = $this->setting ['newusergroupid']; } $emailstatus = 1; } // 移動端,因爲不發送郵件進行郵箱驗證,則郵件狀態爲未激活 if(defined('IN_MOBILE')) $emailstatus = 0;