error handling
This commit is contained in:
parent
0f51e99ae4
commit
0b5fbdc45c
|
|
@ -119,7 +119,11 @@ class LoginByNC extends Controller {
|
||||||
];
|
];
|
||||||
|
|
||||||
$context = stream_context_create($opts);
|
$context = stream_context_create($opts);
|
||||||
|
try{
|
||||||
$file = file_get_contents($this->nclink.'/api/setlog/', false, $context);
|
$file = file_get_contents($this->nclink.'/api/setlog/', false, $context);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
//
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue