application/core/manage/logic/MemberLogic.php
public function saveMember($data, $user_id)
    {
        // 密码加密
        if (empty($data['user_passwd'])) {
            unset($data['user_passwd']);
        } else {
            $data['user_passwd'] = $this->encryptPasswd($data['user_passwd']);
        }
        
        // 重复密码
        if (isset($data['re_passwd'])) {
            unset($data['re_passwd']);
        }
        
        return $this->saveUser($user_id, $data);
    }
public function saveMember($data, $user_id)
    {
        // 密码加密
        if (empty($data['user_passwd'])) {
            unset($data['user_passwd']);
        } else {
            $data['user_passwd'] = $this->encryptPasswd($data['user_passwd']);
        }
        
        // 重复密码
        if (isset($data['re_passwd'])) {
            unset($data['re_passwd']);
        }
        
        return $this->saveUser($user_id, $data);
    }
修改用户

@param array $data
@param array $user_id
@return number