- # netname = $_POST['netname'];
- # $validateInfo = $_POST['validateInfo'];
- # $IDCar = $_POST['IDCar'];
- # $AddressHj = $_POST['AddressHj'];
- # $AddressNow = $_POST['AddressNow'];
- # $bankName1 = $_POST['bankName1'];
- # $bankKhh1 = $_POST['bankKhh1'];
- # $mobile = $_POST['mobile'];
- # $phone = $_POST['phone'];
- # $qq = $_POST['qq'];
- # $msn = $_POST['msn'];
- #
- # $setarr = array(
- # 'uid' => $newuid,
- # 'username' => $username,
- # 'groupid' => 2,
- # 'password' => md5("$newuid|$_SGLOBAL[timestamp]"), //本地密码随机生成
- # 'dateline' => $_SGLOBAL['timestamp'],
- # 'updatetime' => $_SGLOBAL['timestamp'],
- # 'lastlogin' => $_SGLOBAL['timestamp'],
- # 'netname' => $netname,
- # 'validateInfo' => $validateInfo,
- # 'IDCar' => $IDCar,
- # 'AddressHj' => $AddressHj,
- # 'AddressNow' => $AddressNow,
- # 'bankName1' => $bankName1,
- # 'bankKhh1' => $bankKhh1,
- # 'mobile' => $mobile,
- # 'phone' => $phone,
- # 'qq' => $qq,
- # 'msn' => $msn,
- # 'ip' => $_SGLOBAL['onlineip']
- # );
- # //更新本地用户库
- # inserttable('members', $setarr, 0, true);
复制代码 楼主,我今天也遇到了你这个问题....
最后找到了原因.
关键在:
$setarr = array(
inserttable('members', $setarr, 0, true);
$setarr里不能插入表中没有的字段..
所以,你用uc_user_register 在之前把字段写进数据库就OK了.
inserttable('members', $setarr, 0, true);中的$setarr不要插多余的字段..否则肯定不行...
要么..你就在CBD_UC_MEMBERS里边也增加同样的字段
PS:我发现这里的人都很保守..很多东西都不愿意分享...其实很多东西并不是有深度.只是因为是看别人的代码,理解起来费劲....鄙视那些动不动卖金币的行为. |