个人建议 这样修改可能更好点- $setarr = array(
- 'uid' => $newuid,
- 'username' => $username,
- 'password' => md5("$newuid|$_SGLOBAL[timestamp]")//本地密码随机生成
- );
- //************************
- $setarr1 = array(
- 'uid' => $newuid,
- 'username' => $username,
- 'password' => md5("$newuid|$_SGLOBAL[timestamp]"),//本地密码随机生成
- 'groupid' =>$groupid,
- 'extcredits2' =>"$extcredits2",
- 'timeoffset'=>$timeoffset,
- 'regdate'=>$regdate,
- 'lastvisit'=>$lastvisit,
- 'lastactivity'=>$lastactivity
- );
-
- $setarr2 = array(
- 'uid' => $newuid
复制代码 替换为- $password_bi=md5("$newuid|$_SGLOBAL[timestamp]");
- $setarr = array(
- 'uid' => $newuid,
- 'username' => $username,
- 'password' =>$password_bi //本地密码随机生成
- );
- //************************
- $setarr1 = array(
- 'uid' => $newuid,
- 'username' => $username,
- 'password' => $password_bi,//本地密码随机生成
- 'groupid' =>$groupid,
- 'extcredits2' =>"$extcredits2",
- 'timeoffset'=>$timeoffset,
- 'regdate'=>$regdate,
- 'lastvisit'=>$lastvisit,
- 'lastactivity'=>$lastactivity
- );
-
- $setarr2 = array(
- 'uid' => $newuid
-
- );
复制代码 呵呵 个人愚见 还请LZ与广大兄弟指正 |