fix uid
This commit is contained in:
@@ -10,6 +10,9 @@ $routes->get('/', 'Home::index');
|
||||
|
||||
$routes->post('/digibko/v1/identity/token', 'DigiFiAuth::startBkoToken');
|
||||
|
||||
$routes->get('/digibko/v1/loan/started', 'BkoReports::startedApplication');
|
||||
|
||||
|
||||
$routes->get('/digibko/v1/dashboard/bvn/recent', 'DigiFiAuth::startBkoToken');
|
||||
$routes->get('/digibko/v1/applications/pending', 'BkoReports::pendingApplication');
|
||||
|
||||
|
||||
@@ -7,6 +7,12 @@ use CodeIgniter\HTTP\ResponseInterface;
|
||||
class BkoReports extends BaseController
|
||||
{
|
||||
|
||||
public function startedApplication() :ResponseInterface
|
||||
{
|
||||
//SELECT uid,loan_amount,payment_month,sales_agent,gender,marital_status,email,address,state,country,status,added,updated FROM applications;
|
||||
|
||||
return $this->respond([], 200);
|
||||
}
|
||||
public function pendingApplication() :ResponseInterface
|
||||
{
|
||||
return $this->respond([], 200);
|
||||
|
||||
@@ -33,7 +33,7 @@ class Loan extends BaseController
|
||||
$data = $this->request->getPost();
|
||||
$addedData =[];
|
||||
if (
|
||||
$data['uid'] != '' &&
|
||||
$data['customer_uid'] != '' &&
|
||||
$data['loan_amount'] != '' &&
|
||||
$data['payment_month'] != '' &&
|
||||
$data['sales_agent'] != '' &&
|
||||
@@ -44,7 +44,7 @@ class Loan extends BaseController
|
||||
$data['country'] != ''
|
||||
) {
|
||||
$udata = [
|
||||
'uid' => $data['uid'],
|
||||
'customer_uid' => $data['customer_uid'],
|
||||
'loan_amount' => $data['loan_amount'],
|
||||
'payment_month' => $data['payment_month'],
|
||||
'sales_agent' => $data['sales_agent'],
|
||||
|
||||
Reference in New Issue
Block a user