后台文件修改,修复搜索时分页链接会没有参数的情况

This commit is contained in:
2018-04-01 15:45:10 +08:00
parent fd6bbb7451
commit b97da3e1ac
17 changed files with 112 additions and 43 deletions

View File

@@ -144,8 +144,8 @@ class Member extends Base {
function register($username, $password, $repassword, $email, $isautologin = true, $other = array()){
$data['username'] = $username;
$data['salt'] = rand_string(6);
$data['password'] = $password;
$data['repassword'] = $repassword;
$data['password'] = md5($password . $data['salt']);
$data['repassword'] = md5($repassword . $data['salt']);
$data['email'] = $email;
if (!empty($other)) {
$data = array_merge($data, $other);
@@ -156,7 +156,7 @@ class Member extends Base {
if ($isautologin) {
$this->autoLogin($this->data);
}
return $result;
return $data;
}else{
if (!$this->getError()) {
$this->error = "注册失败!";