Automation init...3

This commit is contained in:
최준흠 2024-09-13 11:09:07 +09:00
parent 6f42de5eb2
commit 981eff758a

View File

@ -67,11 +67,12 @@ class WebLibrary extends MySocketLibrary
} }
log_message("debug", "Socket URL-> " . $url); log_message("debug", "Socket URL-> " . $url);
$response = $this->getClient()->get($url, $options); $response = $this->getClient()->get($url, $options);
if ($response->getStatusCode() != 200) { if ($response->getStatusCode() == 200) {
return $response->getBody()->getContents();
// return $response->getBody();
} else {
throw new \Exception("error", "{$url} 접속실패: " . $response->getStatusCode()); throw new \Exception("error", "{$url} 접속실패: " . $response->getStatusCode());
} }
// return $response->getBody()->getContents();
return $response->getBody();
} }
// 로그인 메서드 // 로그인 메서드