mirror of
https://github.com/hakasenyang/osu-tournament-php
synced 2026-08-22 03:03:07 +09:00
리플 버그 수정
랭킹 중 Unknown (알 수 없음) 으로 뜨면 값을 제대로 가져오지 못 하는 버그 수정.
This commit is contained in:
+5
-3
@@ -191,9 +191,11 @@
|
||||
return false;
|
||||
break;
|
||||
case 'ripple':
|
||||
$this->Playcount = str_replace(',', NULL, $this->Parser->splits($this->data_profile, '<td class="right aligned">', '</td>', 6 + ($this->mode * 9)));
|
||||
$this->Performance = str_replace(',', NULL, $this->Parser->splits($this->data_profile, '<td class="right aligned">', '</td>', 3 + ($this->mode * 9)));
|
||||
$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, '<h1 data-mode="' . $this->mode . '"' . (($this->mode != 0) ? ' hidden' : NULL) . '>', '</h1>', 1));
|
||||
$checkrank = (strtolower($this->Rank) == 'unknown') ? 0 : 2;
|
||||
if ($checkrank == 0) $this->Rank = 0;
|
||||
$this->Playcount = str_replace(',', NULL, $this->Parser->splits($this->data_profile, '<td class="right aligned">', '</td>', $checkrank + 4 + ($this->mode * ($checkrank + 7))));
|
||||
$this->Performance = str_replace(',', NULL, $this->Parser->splits($this->data_profile, '<td class="right aligned">', '</td>', $checkrank + 1 + ($this->mode * ($checkrank + 7))));
|
||||
break;
|
||||
default:
|
||||
throw new \Exception($this->server . ' is not supported.');
|
||||
|
||||
Reference in New Issue
Block a user