x3.5新增用户、更新资料、登录session这么设置可以吗?
2023-08-17 18:16 来自 婷姐 发布@ Discuz!问题求助
新增用户:
1.在ucent注册用户
$uid = uc_user_register($data'username'], $data'u_oriPassword'], $email = '1234567890@qq.com');
2.新增用户表记录
DB::insert('common_member_profile', array(
'uid' => $uid,
'realname' => $userinfo->username,
'gender' => 0,
'birthyear' => 0,
'birthmonth' => 0,
'birthday' => 0,
'mobile' => $userinfo->mobile
));
3.新增用户积分表记录
否则进去不会显示威望等,需要手动下发才行,所以干脆直接加条记录。
DB::insert('common_member_count', array(
'uid' => $uid
1.在ucent注册用户
$uid = uc_user_register($data'username'], $data'u_oriPassword'], $email = '1234567890@qq.com');
2.新增用户表记录
DB::insert('common_member_profile', array(
'uid' => $uid,
'realname' => $userinfo->username,
'gender' => 0,
'birthyear' => 0,
'birthmonth' => 0,
'birthday' => 0,
'mobile' => $userinfo->mobile
));
3.新增用户积分表记录
否则进去不会显示威望等,需要手动下发才行,所以干脆直接加条记录。
DB::insert('common_member_count', array(
'uid' => $uid
这个uc_user_register方法是怎么用的 New
2024-07-08 19:39 来自 哥斯拉 发布@ Discuz!问题求助
$uid = uc_user_register(addslashes($newusername), $newpassword, $newemail);
function uc_user_register($username, $password, $email, $questionid = '', $answer = '', $regip = '') {
define('UC_API_FUNC', ((defined('UC_CONNECT') && UC_CONNECT == 'mysql') || UC_STANDALONE) ? 'uc_api_mysql' : 'uc_api_post');
正常走注册,或者后台添加用户都是正常新增,但是我自己把这个方法拿出来用返回的都是空
68673
我知道答案 回答被采纳将会获得1 贡献 已有0人回答
function uc_user_register($username, $password, $email, $questionid = '', $answer = '', $regip = '') {
define('UC_API_FUNC', ((defined('UC_CONNECT') && UC_CONNECT == 'mysql') || UC_STANDALONE) ? 'uc_api_mysql' : 'uc_api_post');
正常走注册,或者后台添加用户都是正常新增,但是我自己把这个方法拿出来用返回的都是空
68673
我知道答案 回答被采纳将会获得1 贡献 已有0人回答



