From a621791dd04ea7ead173daa4b9c93cda9e81f01a Mon Sep 17 00:00:00 2001 From: Hakase Date: Mon, 2 Oct 2017 09:53:55 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A6=AC=ED=94=8C=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 랭킹 중 Unknown (알 수 없음) 으로 뜨면 값을 제대로 가져오지 못 하는 버그 수정. --- include/check.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/check.php b/include/check.php index 4d08fa9..3b29332 100644 --- a/include/check.php +++ b/include/check.php @@ -191,9 +191,11 @@ return false; break; case 'ripple': - $this->Playcount = str_replace(',', NULL, $this->Parser->splits($this->data_profile, '', '', 6 + ($this->mode * 9))); - $this->Performance = str_replace(',', NULL, $this->Parser->splits($this->data_profile, '', '', 3 + ($this->mode * 9))); - $this->Rank = str_replace('#', NULL, $this->Parser->splits($this->data_profile, '', '', 1 + ($this->mode * 9))); + $this->Rank = str_replace('#', NULL, $this->Parser->splits($this->data_profile, '

mode != 0) ? ' hidden' : NULL) . '>', '

', 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, '', '', $checkrank + 4 + ($this->mode * ($checkrank + 7)))); + $this->Performance = str_replace(',', NULL, $this->Parser->splits($this->data_profile, '', '', $checkrank + 1 + ($this->mode * ($checkrank + 7)))); break; default: throw new \Exception($this->server . ' is not supported.');