mirror of
https://github.com/hakasenyang/osu-tournament-php
synced 2026-08-26 21:13:09 +09:00
Added Exception (Select server)
This commit is contained in:
+3
-6
@@ -120,8 +120,7 @@
|
|||||||
$this->RealID = $this->Parser->splits($this->data_profile, '<title>', ''s profile - Ripple');
|
$this->RealID = $this->Parser->splits($this->data_profile, '<title>', ''s profile - Ripple');
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$this->ResetObject();
|
throw new \Exception($server . ' is not supported.');
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
if(empty($this->OsuID) || empty($this->RealID))
|
if(empty($this->OsuID) || empty($this->RealID))
|
||||||
{
|
{
|
||||||
@@ -137,8 +136,7 @@
|
|||||||
$this->Occupation = $this->Parser->splits($this->data_profile, '(aka <b>', '</b>)');
|
$this->Occupation = $this->Parser->splits($this->data_profile, '(aka <b>', '</b>)');
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$this->ResetObject();
|
throw new \Exception($this->server . ' is not supported.');
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->GetOccupation();
|
$this->GetOccupation();
|
||||||
@@ -194,8 +192,7 @@
|
|||||||
$this->Rank = str_replace('#', NULL, $this->Parser->splits($this->data_profile, '<td class="right aligned">', '</td>', 1 + ($this->mode * 9)));
|
$this->Rank = str_replace('#', NULL, $this->Parser->splits($this->data_profile, '<td class="right aligned">', '</td>', 1 + ($this->mode * 9)));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$this->ResetObject();
|
throw new \Exception($this->server . ' is not supported.');
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user