fix getNetworkHyper
This commit is contained in:
parent
e0c289b867
commit
15f0bca70c
|
@ -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://backoffice.ilink-app.com';
|
$config['base_url'] = 'https://'.$_SERVER['SERVER_NAME'].'/backoffice';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
@ -77,7 +77,7 @@ $db['default'] = array(
|
||||||
'hostname' => 'localhost',
|
'hostname' => 'localhost',
|
||||||
'username' => 'root',
|
'username' => 'root',
|
||||||
'password' => 'vps@2017GA',
|
'password' => 'vps@2017GA',
|
||||||
'database' => 'iLink_prod',
|
'database' => 'iLink_preprod',
|
||||||
'dbdriver' => 'mysqli',
|
'dbdriver' => 'mysqli',
|
||||||
'dbprefix' => '',
|
'dbprefix' => '',
|
||||||
'pconnect' => FALSE,
|
'pconnect' => FALSE,
|
||||||
|
|
|
@ -1445,15 +1445,21 @@ class Gestion extends CI_Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$hyper = $this->wallet_model->getNetworkHyper($network_id)->first_row();
|
$hyper = $this->wallet_model->getNetworkHyper($network_id);
|
||||||
$data['walletHyper'] = $this->wallet_model->getWallet($hyper->agent_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;
|
$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();
|
||||||
|
@ -2043,7 +2049,8 @@ class Gestion extends CI_Controller
|
||||||
$this->users_group_details($data['network_id'], $this->input->get('group'));
|
$this->users_group_details($data['network_id'], $this->input->get('group'));
|
||||||
} else {
|
} else {
|
||||||
$data['groups'] = $this->nano_credit_model->getUsersGroups($data['network_id']);
|
$data['groups'] = $this->nano_credit_model->getUsersGroups($data['network_id']);
|
||||||
$data['configWallet'] = $this->wallet_model->getConfigWallet($data['network_id'])->first_row();
|
$configWallet = $this->wallet_model->getConfigWallet($data['network_id']);
|
||||||
|
$data['configWallet'] = is_array($configWallet) ? reset($configWallet) : $configWallet;
|
||||||
$networkDetails = $this->user_model->getNetworkDetails($data['network_id']);
|
$networkDetails = $this->user_model->getNetworkDetails($data['network_id']);
|
||||||
if ($networkDetails) {
|
if ($networkDetails) {
|
||||||
$data['network'] = $networkDetails->first_row()->network;
|
$data['network'] = $networkDetails->first_row()->network;
|
||||||
|
|
0
application/models/pagination/CustomerAccountOpeningRequests_model.php
Normal file → Executable file
0
application/models/pagination/CustomerAccountOpeningRequests_model.php
Normal file → Executable file
Before Width: | Height: | Size: 430 KiB After Width: | Height: | Size: 430 KiB |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue