diff --git a/application/config/config.php b/application/config/config.php index b7d60860..4a407526 100755 --- a/application/config/config.php +++ b/application/config/config.php @@ -23,7 +23,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); | a PHP script and you can easily do that on your own. | */ -$config['base_url'] = 'https://'.$_SERVER['SERVER_NAME'].'/backoffice'; +$config['base_url'] = '/';//'https://'.$_SERVER['SERVER_NAME'].'/backoffice'; /* |-------------------------------------------------------------------------- diff --git a/application/config/constants.php b/application/config/constants.php index 4c54c511..76afe9b6 100755 --- a/application/config/constants.php +++ b/application/config/constants.php @@ -87,11 +87,11 @@ defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest auto /* * Microservices constants */ -define('WALLET_SERVICE_URL','https://ilink-app.com:8081'); +define('WALLET_SERVICE_URL','https://test.ilink-app.com:8081'); define('WALLET_SERVICE_TOKEN','fywRtXSwEhHncwXaqn10wa9bJU9a63r2'); -define('WALLET_SERVICE_EXTERNE_URL','https://ilink-app.com:8085'); +define('WALLET_SERVICE_EXTERNE_URL','https://test.ilink-app.com:8085'); define('WALLET_SERVICE_EXTERNE_TOKEN','JeJMx6KNW1qo2h01rCVOLfX3f1nmcF2I'); define('NOTIFICATION_SERVICE_URL','https://ilink-app.com:8083'); define('NOTIFICATION_SERVICE_TOKEN','RfXvPQzQRgwpzQYPnLfWpZzgx4QseHlg'); -define('NANO_SANTE_SERVICE_URL','https://ilink-app.com:8086'); +define('NANO_SANTE_SERVICE_URL','https://test.ilink-app.com:8086'); define('NANO_SANTE_SERVICE_TOKEN','eStSQIoAfnTJ9nkCs0IJkJiKACxYVcQm'); diff --git a/application/controllers/Gestion.php b/application/controllers/Gestion.php index 17c23245..31d0b489 100755 --- a/application/controllers/Gestion.php +++ b/application/controllers/Gestion.php @@ -1443,15 +1443,21 @@ class Gestion extends CI_Controller } - $hyper = $this->wallet_model->getNetworkHyper($network_id)->first_row(); - $data['walletHyper'] = $this->wallet_model->getWallet($hyper->agent_id); + $hyper = $this->wallet_model->getNetworkHyper($network_id); + if($hyper !== true && $hyper){ + $hyper = $hyper->first_row(); + $data['walletHyper'] = $this->wallet_model->getWallet($hyper->agent_id); + } else { + $data['walletHyper'] = null; + } + $data['network_id'] = $network_id; $networkDetails = $this->user_model->getNetworkDetails($network_id); if ($networkDetails) { $data['network'] = $networkDetails->first_row()->network; $data['country'] = $networkDetails->first_row()->country; } -// $data['agentWalletInfos'] = $this->user_model->getInfosWalletAgentForHyper($network_id); + //$data['agentWalletInfos'] = $this->user_model->getInfosWalletAgentForHyper($network_id); $data['active'] = "wallet"; $data['alert'] = ""; $data['game_pays'] = $this->user_model->getGameCountry();