diff --git a/www-api/app/Config/RoutesV1.php b/www-api/app/Config/RoutesV1.php index 7a8d946a..13ee1039 100644 --- a/www-api/app/Config/RoutesV1.php +++ b/www-api/app/Config/RoutesV1.php @@ -44,14 +44,6 @@ $routes->group('/en/wrench/api/v1/', static function ($routes) { $routes->post('loginpromo', 'WrenchAuth::promoLogin'); //'WrenchApi::apigate' }); - - - -//$routes->post('/en/wrench/api/v1/userlogin', 'WrenchAuth::userLogin'); // New routes defined -//$routes->post('/en/wrench/api/v1/qrlogin', 'WrenchAuth::qrLogin'); //'WrenchApi::apigate' -//$routes->post('/en/wrench/api/v1/loginpromo', 'WrenchAuth::promoLogin'); //'WrenchApi::apigate' - - $routes->post('/en/wrench/api/v1/homebanners', 'WrenchBanners::usersBanners'); // 'WrenchApi::apigate' $routes->post('/en/wrench/api/v1/startjoblist', 'WrenchApi::apigate'); $routes->get('/en/wrench/api/v1/startjoblist', 'WrenchApi::apigate'); @@ -102,19 +94,6 @@ $routes->group('/en/wrench/api/v1/', static function ($routes) { $routes->post('groupmemberdel', 'WrenchApi::apigate'); }); -//$routes->post('/en/wrench/api/v1/jobmanageragree', 'WrenchApi::apigate'); -//$routes->post('/en/wrench/api/v1/jobmanagerlist', 'WrenchApi::apigate'); -//$routes->post('/en/wrench/api/v1/jobmanagerfiles', 'WrenchApi::apigate'); -//$routes->post('/en/wrench/api/v1/jobmanageroffers', 'WrenchApi::apigate'); -//$routes->post('/en/wrench/api/v1/jobmanageractive', 'WrenchApi::apigate'); -//$routes->post('/en/wrench/api/v1/jobmanagercreatejob', 'WrenchApi::apigate'); -//$routes->post('/en/wrench/api/v1/jobmanagerupdatejob', 'WrenchApi::apigate'); -//$routes->post('/en/wrench/api/v1/jobmanagerdeletejob', 'WrenchApi::apigate'); -//$routes->post('/en/wrench/api/v1/jobgrouplist', 'WrenchApi::apigate'); -//$routes->post('/en/wrench/api/v1/jobgroupadd', 'WrenchApi::apigate'); -//$routes->post('/en/wrench/api/v1/groupmemberadd', 'WrenchApi::apigate'); -//$routes->post('/en/wrench/api/v1/groupmemberdel', 'WrenchApi::apigate'); - $routes->post('/en/wrench/api/v1/activetaskslist', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/tasksreport', 'WrenchApi::apigate'); @@ -128,11 +107,6 @@ $routes->post('/en/wrench/api/v1/familylist', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/getwallets', 'WrenchApi::apigate'); // to be retired // WALLET FUNCTIONS -//$routes->post('/en/wrench/api/v1/wallets', 'WrenchWallet::getWallet'); -//$routes->post('/en/wrench/api/v1/kidwallets', 'WrenchWallet::getKidWallet'); -//$routes->post('/en/wrench/api/v1/wallets/escrols', 'WrenchWallet::getEscrols'); -//$routes->post('/en/wrench/api/v1/wallets/card/request', 'WrenchWallet::requestVirtualCard'); - $routes->group('/en/wrench/api/v1/', static function ($routes) { $routes->post('wallets', 'WrenchWallet::getWallet'); $routes->post('kidwallets', 'WrenchWallet::getKidWallet'); diff --git a/www-api/app/Controllers/WrenchWallet.php b/www-api/app/Controllers/WrenchWallet.php index dbae3b6c..d1607511 100644 --- a/www-api/app/Controllers/WrenchWallet.php +++ b/www-api/app/Controllers/WrenchWallet.php @@ -219,30 +219,9 @@ class WrenchWallet extends BaseController $this->saveCache($endpoint,$out,1500); } } - $extraWallet = $this->wrenchWalletModel->kidsExtraWallet(); + $extraWallet = $this->wrenchWalletModel->kidsExtraWallet(); -// $out["result_list"][] = $extraWallet; -// [ -// "amount" => 0, -// "id" => 1, -// "code" => "USD", -// "description" => "Add Virtual Debit Card", -// "symbol" => "$", -// "action_type" => "AC_AD_VIRTUAL_CARD", -// "lorder" => 0, -// "country" => "", -// "processor" => 9010, -// "current_balance" => 0, -// "transfer_limit" => 0, -// "wallet_uid" => "", -// "escrow" => 0, -// "status" => 1, -// "show_balance" => false, -// "rt_action_text" => "Add Card", -// "banner" => 'https://www.wrenchboard.com/assets/images/apps/wallet/wallet-card.jpg', -// "icon" => 'https://www.wrenchboard.com/assets/images/apps/wallet/icon/cards.png' -// ]; -/* */ + //$out["result_list"][] = $extraWallet; $out["wallet_cards"] = []; return $this->respond( $this->summaryReturnData($in,$out), 200); } @@ -267,7 +246,7 @@ class WrenchWallet extends BaseController // $wallet_country = $first_names = array_column($owner_country , 'country');; $auxWallet = $this->auxiliaryWallets($owner_country); foreach ($auxWallet as $item){ - // $out["result_list"][] = $item; + $out["result_list"][] = $item; } } log_message('critical', "***** ***** WrenchJobs::getWallet Ret ");