CET Credit PD COMMENT : PS

This commit is contained in:
VE10-Sanjeev 2023-02-02 15:56:30 +05:30
parent c703668383
commit 2fa496e905

View File

@ -230,15 +230,17 @@ class SMC_Credit_PD_Controller extends REST_Controller {
{
$this->SMC_Credit_PD_Model->updateRecords(array('is_pdf' => 1, 'is_edited' => 0),SMC_CREDIT_PD,array('smc_credit_pd' => $smc_credit_pd));
sleep(10);
$result = $this->dataSynchronization($smc_credit_pd);
log_message('ERROR', '#### Automation Credit PD ('.$smc_credit_pd.') status '.$result->status.' Data Transfered');
// $flag = $result == true ? $flag+1 : $flag;
if($result->status == 200){
log_message('ERROR', '#### Credit PD ('.$smc_credit_pd.') status '.$result->status." Data Transfered");
$update_fields2 = array('is_the_data_transfer_cet' => 1);
$this->SMC_Credit_PD_Model->updateRecords($update_fields2,PDTRIGGER,array('pd_id' => $smc_credit_pd));
}
// ### Automation CET Data Push Credit PD - 2/2/23
// sleep(10);
// $result = $this->dataSynchronization($smc_credit_pd);
// log_message('ERROR', '#### Automation CET Data Push Credit PD ('.$smc_credit_pd.') status '.$result->status.' Data Transfered');
// if($result->status == 200){
// log_message('ERROR', '#### Credit PD ('.$smc_credit_pd.') status '.$result->status." Data Transfered");
// $update_fields2 = array('is_the_data_transfer_cet' => 1);
// $this->SMC_Credit_PD_Model->updateRecords($update_fields2,PDTRIGGER,array('pd_id' => $smc_credit_pd));
// }else{
// log_message('ERROR', '#### Credit PD ('.$smc_credit_pd.') status '.$result->status);
// }
if($api)
{
// $singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucket_name,$key,'30 minutes');