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