* Fix bug.
This commit is contained in:
@@ -590,6 +590,7 @@ class zahostModel extends model
|
||||
*/
|
||||
public function getServiceStatus($host)
|
||||
{
|
||||
if(in_array($host->status, array('wait', 'offline'))) return $this->lang->zahost->init->serviceStatus;
|
||||
$result = json_decode(commonModel::http("http://{$host->extranet}:{$host->zap}/api/v1/service/check", json_encode(array("services" => "all")), array(), array("Authorization:$host->tokenSN")));
|
||||
if(empty($result) || $result->code != 'success')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user