fix getNetworkHyper

This commit is contained in:
root 2025-05-07 23:39:05 +01:00
parent db53b050e5
commit bdf1adbfe4
3 changed files with 13 additions and 7 deletions

View File

@ -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. | 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';
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View File

@ -87,11 +87,11 @@ defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest auto
/* /*
* Microservices constants * 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_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('WALLET_SERVICE_EXTERNE_TOKEN','JeJMx6KNW1qo2h01rCVOLfX3f1nmcF2I');
define('NOTIFICATION_SERVICE_URL','https://ilink-app.com:8083'); define('NOTIFICATION_SERVICE_URL','https://ilink-app.com:8083');
define('NOTIFICATION_SERVICE_TOKEN','RfXvPQzQRgwpzQYPnLfWpZzgx4QseHlg'); 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'); define('NANO_SANTE_SERVICE_TOKEN','eStSQIoAfnTJ9nkCs0IJkJiKACxYVcQm');

View File

@ -1443,15 +1443,21 @@ class Gestion extends CI_Controller
} }
$hyper = $this->wallet_model->getNetworkHyper($network_id)->first_row(); $hyper = $this->wallet_model->getNetworkHyper($network_id);
if($hyper !== true && $hyper){
$hyper = $hyper->first_row();
$data['walletHyper'] = $this->wallet_model->getWallet($hyper->agent_id); $data['walletHyper'] = $this->wallet_model->getWallet($hyper->agent_id);
} else {
$data['walletHyper'] = null;
}
$data['network_id'] = $network_id; $data['network_id'] = $network_id;
$networkDetails = $this->user_model->getNetworkDetails($network_id); $networkDetails = $this->user_model->getNetworkDetails($network_id);
if ($networkDetails) { if ($networkDetails) {
$data['network'] = $networkDetails->first_row()->network; $data['network'] = $networkDetails->first_row()->network;
$data['country'] = $networkDetails->first_row()->country; $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['active'] = "wallet";
$data['alert'] = ""; $data['alert'] = "";
$data['game_pays'] = $this->user_model->getGameCountry(); $data['game_pays'] = $this->user_model->getGameCountry();