打开/source/class/helper/helper_mobile.php文件搜索下面代码(约在22行):
$content = preg_replace("/href=\"(\w+\.php)(.*?)\"/e", "mobilereplace('\\1', '\\2')", $content);
将其进行注释
打开/source/function/function_core.php文件搜索下面代码(约在237行):
function dheader($string, $replace = true, $http_response_code = 0)
注释下方代码
if(defined('IN_MOBILE') && strpos($string, 'mobile') === false && $islocation) {
if (strpos($string, '?') === false) {
$string = $string.'?mobile='.IN_MOBILE;
} else {
if(strpos($string, '#') === false) {
$string = $string.'&mobile='.IN_MOBILE;
} else {
$str_arr = explode('#', $string);
$str_arr[0] = $str_arr[0].'&mobile='.IN_MOBILE;
$string = implode('#', $str_arr);
}
}
}
更新缓存即可
记得备份文件哦