Automation init...3
This commit is contained in:
parent
6f42de5eb2
commit
981eff758a
@ -67,11 +67,12 @@ class WebLibrary extends MySocketLibrary
|
||||
}
|
||||
log_message("debug", "Socket URL-> " . $url);
|
||||
$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());
|
||||
}
|
||||
// return $response->getBody()->getContents();
|
||||
return $response->getBody();
|
||||
}
|
||||
|
||||
// 로그인 메서드
|
||||
|
||||
Loading…
Reference in New Issue
Block a user