Users process loan

This commit is contained in:
CHIEFSOFT\ameye
2024-08-04 23:03:28 -04:00
parent 5e7ae002ae
commit 2f58bd3609
2 changed files with 17 additions and 1 deletions
+8
View File
@@ -16,6 +16,13 @@ class Loan extends BaseController
}
public function addPaymentCard(){
$result =[];
return $this->respond($result, 200);
}
public function loanProcess(){
// $get_param = $_GET ?? null;
$uriSegments = explode("/", parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
@@ -137,6 +144,7 @@ disbursement
'state' => $data['state'],
'country' => $data['country'],
'employer_uid' => $data['employer_uid'],
'disbursement_account' => $data['disbursement_account'],
'loan_detail' => json_encode($data)
];
+9 -1
View File
@@ -23,10 +23,18 @@ class Users extends BaseController
$query = $this->db->query("SELECT * FROM customers WHERE uid = '".$in['uid']."' ");
$row = $query->getRowArray();
$loanResult = $this->userLoan($in['uid']);
$processLoan = [];
foreach ($loanResult as $value) {
$processLoan[] = $value;
}
$data = [
'call_return' => '100',
'customer' => $row,
'loans' => $this->userLoan($in['uid'])
'loans' => $loanResult,
'lln' => $processLoan
];
return $this->respond($data, 200);
}