fix end poinst

This commit is contained in:
CHIEFSOFT\ameye
2024-09-14 11:29:19 -04:00
parent 3fc9c5bfaf
commit 8ecbdb04e0
3 changed files with 87 additions and 2 deletions
+61
View File
@@ -15,6 +15,67 @@ class AirFlow extends BaseController
return []; //json_encode( $final_out );
}
public function flowAppReminder(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out =[];
// $this->processLoadData();
log_message('critical', "AirFlow::flowAppReminder ********* ALL ".serialize($in) );
return []; //json_encode( $final_out );
}
public function flowDailyReports(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out =[];
// $this->processLoadData();
log_message('critical', "AirFlow::flowDailyReports ********* ALL ".serialize($in) );
return []; //json_encode( $final_out );
}
public function flowGeneralAlerts(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out =[];
// $this->processLoadData();
log_message('critical', "AirFlow::flowGeneralAlerts ********* ALL ".serialize($in) );
return []; //json_encode( $final_out );
}
public function flowNewEmployers(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out =[];
// $this->processLoadData();
log_message('critical', "AirFlow::flowNewEmployers ********* ALL ".serialize($in) );
return []; //json_encode( $final_out );
}
public function flowPaymentReminder(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out =[];
// $this->processLoadData();
log_message('critical', "AirFlow::flowPaymentReminder ********* ALL ".serialize($in) );
return []; //json_encode( $final_out );
}
public function flowVerifyEmpoyer(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out =[];
// $this->processLoadData();
log_message('critical', "AirFlow::flowVerifyEmpoyer ********* ALL ".serialize($in) );
return []; //json_encode( $final_out );
}
private function processLoadData(){
$mysql ="SELECT uid,customer_uid,loan_detail
FROM applications
+18
View File
@@ -309,6 +309,24 @@ public function signatoryUpdate():ResponseInterface{
return $this->respond($data, 200);
}
public function getCustomer($uid){
$query = $this->db->query("SELECT * FROM customers WHERE uid::text ='".$uid."'");
$rowC = $query->getResult('array');
$mySqA ="SELECT uid AS applications_uid, loan_amount, added, payment_month FROM applications WHERE customer_uid::text ='".$uid."'";
$query = $this->db->query($mySqA);
$rowA = $query->getResult('array');
$data = [
'call_return' => '100',
'customer' => $rowC,
'applications' => $rowA
];
return $this->respond($data, 200);
}
public function listCustomers():ResponseInterface{
$query = $this->db->query("select * from customers order by id desc");