Job Queue for file read , commission calculation , BDS entry
This commit is contained in:
parent
d59694c3ee
commit
5ede90e956
@ -383,7 +383,7 @@ class PolicyController extends ResourceController
|
|||||||
|
|
||||||
log_message('debug', 'checkPolicyDoc() started for policy_id: '.$policyId);
|
log_message('debug', 'checkPolicyDoc() started for policy_id: '.$policyId);
|
||||||
|
|
||||||
$readDoc = $this->checkPolicyDoc(["policy_id" => $policyId]);
|
$readDoc = $this->checkPolicyDoc($policyId);
|
||||||
|
|
||||||
if($readDoc['status'] == 'success')
|
if($readDoc['status'] == 'success')
|
||||||
{
|
{
|
||||||
@ -633,10 +633,10 @@ class PolicyController extends ResourceController
|
|||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|
||||||
if ($ch !== null) {
|
// if ($ch !== null) {
|
||||||
curl_close($ch);
|
// curl_close($ch);
|
||||||
}
|
// }
|
||||||
log_message('ERROR', "Fatal Error: " . $e->getMessage());
|
log_message('error', "Fatal Error: " . $e->getMessage());
|
||||||
return ['status'=>"failed", 'message'=> "Error: " . $e->getMessage()];
|
return ['status'=>"failed", 'message'=> "Error: " . $e->getMessage()];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user