send mesage instaltly
This commit is contained in:
@@ -155,6 +155,42 @@ disbursement
|
||||
}
|
||||
$addedData = $this->insert_db('applications', $udata);
|
||||
|
||||
if ( isset($addedData["uid"])){
|
||||
try {
|
||||
$application_uid = $addedData["uid"];
|
||||
$this->coreVerifyEmployerMessage($application_uid);
|
||||
} catch (Exception $e) {
|
||||
//echo 'Caught exception: ', $e->getMessage(), "\n";
|
||||
log_message('error', "Application Call Error---=> ". $e->getMessage());
|
||||
}
|
||||
|
||||
/*
|
||||
* {
|
||||
"id": "44",
|
||||
"uid": "c8edebf8-16f6-45f9-98a0-2781199373e9",
|
||||
"customer_uid": "47edd3f0-ab1b-4ede-86d7-e41388cdee62",
|
||||
"loan_amount": "350000",
|
||||
"payment_month": "12",
|
||||
"sales_agent": "",
|
||||
"gender": null,
|
||||
"marital_status": "married",
|
||||
"email": "ameye@chiefsoft.com",
|
||||
"address": "4201 defoors farm trail",
|
||||
"state": "akwa ibom",
|
||||
"country": "NG",
|
||||
"loan_detail": "{\"customer_uid\":\"47edd3f0-ab1b-4ede-86d7-e41388cdee62\",\"loan_amount\":\"350000\",\"payment_month\":\"12\",\"sales_agent\":\"\",\"gender\":\"female\",\"address\":\"4201 defoors farm trail\",\"marital_status\":\"married\",\"state\":\"akwa ibom\",\"email\":\"ameye@chiefsoft.com\",\"country\":\"NG\",\"employer_uid\":\"3a9ec95a-090c-4c98-bc01-e96d76b93952\",\"employment\":\"{\\\"job_title\\\":\\\"Main Developer\\\",\\\"name\\\":\\\"\\\",\\\"sector\\\":\\\"\\\",\\\"industry\\\":\\\"\\\",\\\"resumption_date\\\":\\\"2024-01-02\\\",\\\"email\\\":\\\"\\\",\\\"annual_income\\\":\\\"46464\\\",\\\"monthly_salary\\\":\\\"747477\\\",\\\"salary_payment_date\\\":\\\"2025-01-01\\\",\\\"employment_id\\\":\\\"75758559990\\\",\\\"highest_eductaion\\\":\\\"b.sc + professional qualification\\\",\\\"isChecked\\\":false}\",\"loan_reference\":\"[{\\\"fullname\\\":\\\"Olu Amey\\\",\\\"relationship\\\":\\\"Ma\\\",\\\"phone_number\\\":\\\"6784574356\\\",\\\"email\\\":\\\"ameye@chiefsoft.com\\\",\\\"bvn\\\":\\\"75758559991\\\"},{\\\"fullname\\\":\\\"Olu\\\",\\\"relationship\\\":\\\"Seld\\\",\\\"phone_number\\\":\\\"6784574399\\\",\\\"email\\\":\\\"works@chiefsoft.com\\\",\\\"bvn\\\":\\\"75758559990\\\"}]\",\"disbursement_account\":\"25252262666\",\"disbursement\":\"{\\\"account\\\":\\\"25252262666\\\"}\"}",
|
||||
"status": "2",
|
||||
"added": "2025-01-12 21:13:11.348383",
|
||||
"updated": "2025-01-12 21:13:11.348383",
|
||||
"employer_uid": "3a9ec95a-090c-4c98-bc01-e96d76b93952",
|
||||
"disbursement_account": "25252262666",
|
||||
"pc": "0"
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
return $this->respond($addedData, 200);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user