fix getNetworkHyper
This commit is contained in:
parent
db53b050e5
commit
bdf1adbfe4
|
@ -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';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -1443,8 +1443,14 @@ 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);
|
||||
} else {
|
||||
$data['walletHyper'] = null;
|
||||
}
|
||||
|
||||
$data['network_id'] = $network_id;
|
||||
$networkDetails = $this->user_model->getNetworkDetails($network_id);
|
||||
if ($networkDetails) {
|
||||
|
|
Loading…
Reference in New Issue