Automation Data push Credit pd : ps
This commit is contained in:
parent
32f94c3505
commit
2e2e3a7b18
@ -2038,10 +2038,22 @@ public function filterSalesPDList_post() {
|
|||||||
}else {
|
}else {
|
||||||
$singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucket_name,$key,'30 minutes');
|
$singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucket_name,$key,'30 minutes');
|
||||||
}
|
}
|
||||||
|
### Automation CET Data Push Credit-PD
|
||||||
|
sleep(10);
|
||||||
|
$result = $this->dataSynchronization($smc_credit_pd,0);
|
||||||
|
log_message('ERROR', '#### Automation CET Data Push Credit-PD ('.$smc_credit_pd.') status '.$result->status.' Data Transfered');
|
||||||
|
if(isset($result->status) && $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);
|
||||||
|
}
|
||||||
$data['dataStatus'] = true;
|
$data['dataStatus'] = true;
|
||||||
$data['status'] = REST_Controller::HTTP_OK;
|
$data['status'] = REST_Controller::HTTP_OK;
|
||||||
$data['records'] = $singed_uri;
|
$data['records'] = $singed_uri;
|
||||||
$data['gcpURL'] = $report_gcp_url;
|
$data['gcpURL'] = $report_gcp_url;
|
||||||
|
$data['CETresponse'] = $result;
|
||||||
$this->response($data,REST_Controller::HTTP_OK);
|
$this->response($data,REST_Controller::HTTP_OK);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user