mobile notification : ps

This commit is contained in:
sanjeev 2021-12-14 21:06:56 +05:30
parent a7e008372f
commit 7d65d3df90
2 changed files with 8 additions and 2 deletions

View File

@ -594,6 +594,8 @@ class PD_Controller extends REST_Controller {
// echo 'final';
// die();
$pd_details['parent_pd_id'] = isset($pd_details['parent_pd_id']) ? $pd_details['parent_pd_id'] : NULL;
$pd_details['is_notify_enabled'] = isset($pd_details['is_notify_enabled']) ? (!is_null($pd_details['is_notify_enabled']) ? $pd_details['is_notify_enabled'] : 1) : 1;
$pd_id = $this->PD_Model->saveRecords($pd_details,PDTRIGGER);
@ -1656,7 +1658,6 @@ public function assignPDTempalate($data)
$records['vendor_status'] = TRIGGERED;
}
}
// if($smc_lender_id != $lender_id[0]['fk_lender_id']){
// $records['pd_status'] = isset($records['pd_status']) ? $records['pd_status'] : ALLOCATED ;
// }
@ -6551,6 +6552,9 @@ public function getPDFormDetailsJSON_post()
}
public function notify_get(){
PDALERTS::pdnotification(2854);
}
public function calculatePDScore($data)

View File

@ -733,6 +733,7 @@ class PDALERTS
$mail->IsSMTP(); // Telling the class to use SMTP
$mail_id1 = $core_details[0]['allocated_email'];
$mail_id2 = $core_details[0]['agency_mail'];
$mail->SMTPAuth = true;
$mail->SMTPDebug = 0;
$mail->SMTPSecure = "ssl";
@ -744,10 +745,11 @@ class PDALERTS
$fromName = 'PD Genie';
$subject = 'PD Allocated For Application ID -'.$core_details[0]['lender_applicant_id'];
$mail->addAddress($mail_id1);
$mail->addBCC($mail_id2);
if(ENVIRONMENT == 'testing' || ENVIRONMENT == 'development') {
$fromName .= ' ( TEST ENV ) ';
$subject .= ' ( TEST ENV ) ';
$mail->addBCC("venkiraj0@gmail.com");$mail->addBCC("venbalap08@gmail.com");
$mail->addBCC("venkiraj0@gmail.com");
}
$mail->FromName = $fromName;
$mail->isHTML(true);