Users process loan
This commit is contained in:
@@ -16,6 +16,13 @@ class Loan extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function addPaymentCard(){
|
||||||
|
$result =[];
|
||||||
|
|
||||||
|
|
||||||
|
return $this->respond($result, 200);
|
||||||
|
}
|
||||||
|
|
||||||
public function loanProcess(){
|
public function loanProcess(){
|
||||||
// $get_param = $_GET ?? null;
|
// $get_param = $_GET ?? null;
|
||||||
$uriSegments = explode("/", parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
|
$uriSegments = explode("/", parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
|
||||||
@@ -137,6 +144,7 @@ disbursement
|
|||||||
'state' => $data['state'],
|
'state' => $data['state'],
|
||||||
'country' => $data['country'],
|
'country' => $data['country'],
|
||||||
'employer_uid' => $data['employer_uid'],
|
'employer_uid' => $data['employer_uid'],
|
||||||
|
'disbursement_account' => $data['disbursement_account'],
|
||||||
'loan_detail' => json_encode($data)
|
'loan_detail' => json_encode($data)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -23,10 +23,18 @@ class Users extends BaseController
|
|||||||
$query = $this->db->query("SELECT * FROM customers WHERE uid = '".$in['uid']."' ");
|
$query = $this->db->query("SELECT * FROM customers WHERE uid = '".$in['uid']."' ");
|
||||||
|
|
||||||
$row = $query->getRowArray();
|
$row = $query->getRowArray();
|
||||||
|
|
||||||
|
$loanResult = $this->userLoan($in['uid']);
|
||||||
|
$processLoan = [];
|
||||||
|
foreach ($loanResult as $value) {
|
||||||
|
$processLoan[] = $value;
|
||||||
|
}
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'call_return' => '100',
|
'call_return' => '100',
|
||||||
'customer' => $row,
|
'customer' => $row,
|
||||||
'loans' => $this->userLoan($in['uid'])
|
'loans' => $loanResult,
|
||||||
|
'lln' => $processLoan
|
||||||
];
|
];
|
||||||
return $this->respond($data, 200);
|
return $this->respond($data, 200);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user