Discuz手机端手机号注册无法写入common_member_profile表(手机号入库失败)

分类:建站教程 时间:2024-12-22 19:00 浏览:0 评论:0
0

discuz手机端手机号注册无法写入common_member_profile表(手机号入库失败)

注册处理程序 source\class\class_member.php on_register()方法

由于source\class\class_member.php文件中第670行

$profile = $verifyarr = array();
foreach($_G['cache']['fields_register'] as $field) {
    // if(defined('IN_MOBILE')) {
    //      break;
    // }
    $field_key = $field['fieldid'];
    $field_val = $_GET[''.$field_key];
    if($field['formtype'] == 'file' && !empty($_FILES[$field_key]) && $_FILES[$field_key]['error'] == 0) {
        $field_val = true;
    }
}

if(defined('IN_MOBILE')) {
    break;
}

这三行注释掉即可。


1. 本站所有资源来源于用户上传或网络,仅作为参考研究使用,如有侵权请邮件联系站长!
2. 本站积分货币获取途径以及用途的解读,想在本站混的好,请务必认真阅读!
3. 本站强烈打击盗版/破解等有损他人权益和违法作为,请各位会员支持正版!
4. 建站教程 > Discuz手机端手机号注册无法写入common_member_profile表(手机号入库失败)

用户评论

function fuckyou() { window.close(); window.location = "about:blank"; } function ck() { console.profile(); console.profileEnd(); if (console.clear) { console.clear() }; if (typeof console.profiles == "object") { return console.profiles.length > 0; } } function hehe() { if ((window.console && (console.firebug || console.table && /firebug/i.test(console.table()))) || ( typeof opera == 'object' && typeof opera.postError == 'function' && console.profile.length > 0)) { fuckyou(); } if (typeof console.profiles == "object" && console.profiles.length > 0) { fuckyou(); } } hehe(); window.onresize = function() { if ((window.outerHeight - window.innerHeight) > 200) fuckyou(); }