|
@@ -94,9 +94,15 @@ class minutesControl extends BaseCronControl
|
|
|
$pids = $providers();
|
|
|
foreach ($pids as $pid)
|
|
|
{
|
|
|
- $balance = $balance_getter($pid);
|
|
|
- if($balance !== false) {
|
|
|
- $mod_provider->editProvider(['balance' => $balance],['provider_id' => $pid]);
|
|
|
+ try {
|
|
|
+ $balance = $balance_getter($pid);
|
|
|
+ if($balance !== false) {
|
|
|
+ $mod_provider->editProvider(['balance' => $balance],['provider_id' => $pid]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ catch (Exception $ex)
|
|
|
+ {
|
|
|
+ Log::record($ex->getMessage(),Log::ERR);
|
|
|
}
|
|
|
}
|
|
|
}
|