public function initUser($uid)
{
$map['uid'] = $uid;
$user_info = $this->_user_model->where($map)->find();
$user_info['is_active'] && ($res = $this->_user_model->where($map)->save(array('is_init' => 1)));
// 清除用户缓存
$this->_user_model->cleanCache($uid);
if ($res) {
$this->_error = L('PUBLIC_ACCOUNT_INITIALIZE_SUCCESS');
// 帐号初始化成功
return true;
} else {
$this->_error = L('PUBLIC_ACCOUNT_INITIALIZE_FAIL');
// 帐号初始化失败
return false;
}
}