Wallet fix

This commit is contained in:
CHIEFSOFT\ameye
2024-10-30 16:41:22 -04:00
parent 4c46d4232f
commit c637146653
2 changed files with 3 additions and 50 deletions
-26
View File
@@ -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');
+3 -24
View File
@@ -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 ");