Compare commits
4 Commits
nano-sante
...
master
Author | SHA1 | Date |
---|---|---|
|
49eeafac54 | |
|
bdf1adbfe4 | |
|
db53b050e5 | |
|
0d6a007e3a |
|
@ -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');
|
||||
|
|
|
@ -78,7 +78,7 @@ $db['default'] = array(
|
|||
'hostname' => 'localhost',
|
||||
'username' => 'root',
|
||||
'password' => 'vps@2017GA',
|
||||
'database' => 'iLink_prod',
|
||||
'database' => 'iLink_preprod',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -520,16 +520,21 @@ class Hyperviseur_dash extends CI_Controller
|
|||
}
|
||||
|
||||
//Create wallet if it not exist
|
||||
$res = $this->wallet_model->getWallet($agent_id);
|
||||
if ($res == false) {
|
||||
$this->user_model->addWallet($agent_id);
|
||||
$res = $this->wallet_model->getWallet($agent_id);
|
||||
}
|
||||
|
||||
$row = $res->first_row();
|
||||
$data["commission"] = Money::of(round($row->balance_com, 2), $this->session->userdata('currency_code'), $context)->formatTo('fr_FR');
|
||||
$data["principal"] = Money::of(round($row->balance_princ, 2), $this->session->userdata('currency_code'), $context)->formatTo('fr_FR');
|
||||
$data['wallet_id'] = $row->wallet_id;
|
||||
// $res = $this->wallet_model->getWallet($agent_id);
|
||||
// log_message('error', 'agent_id : ' . print_r($agent_id, true));
|
||||
// if ($res == false) {
|
||||
// $this->user_model->addWallet($agent_id);
|
||||
// $res = $this->wallet_model->getWallet($agent_id);
|
||||
// }
|
||||
|
||||
// $row = $res->first_row();
|
||||
$res = (object) [];
|
||||
$res->balance_com = "235362378.00";
|
||||
$res->balance_princ = "0.00";
|
||||
$res->wallet_id = "23697";
|
||||
$data["commission"] = Money::of(round($res->balance_com, 2), $this->session->userdata('currency_code'), $context);
|
||||
$data["principal"] = Money::of(round($res->balance_princ, 2), $this->session->userdata('currency_code'), $context);
|
||||
$data['wallet_id'] = $res->wallet_id;
|
||||
$data['currency_code'] = $this->session->userdata('currency_code');
|
||||
|
||||
$this->load->view('header_hyp', $data);
|
||||
|
|
|
@ -118,13 +118,11 @@
|
|||
<i class="fa fa-dashboard"></i> <span><?= $this->lang->line('Tableau de bord'); ?></span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="<?php if($active=="geolocated"){echo "active ";} ?>">
|
||||
<a href="#" data-toggle="modal" data-target="#modal-default">
|
||||
<i class="fa fa-users"></i>
|
||||
<span><?= $this->lang->line($hasWallet->first_row()->type == 'ilink_sante' ? 'service_providers' : 'Utilisateurs géolocalisés' ); ?></span>
|
||||
<span>$result = <?= $this->lang->line($hasWallet->first_row()->type == 'ilink_sante' ? 'service_providers' : 'Utilisateurs géolocalisés' ); ?></span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
<li class="<?php if ($active == "super") {
|
||||
echo "active ";
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"source": "https://github.com/bcit-ci/CodeIgniter"
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.0",
|
||||
"php": "^8.0",
|
||||
"spatie/async": "^1.4",
|
||||
"nesbot/carbon": "^2.33",
|
||||
"brick/money": "^0.4.5",
|
||||
|
@ -21,6 +21,11 @@
|
|||
"ext-openssl": "*",
|
||||
"ext-pdo": "*"
|
||||
},
|
||||
"config": {
|
||||
"platform": {
|
||||
"php": "8.0"
|
||||
}
|
||||
},
|
||||
"suggest": {
|
||||
"paragonie/random_compat": "Provides better randomness in PHP 5.x"
|
||||
},
|
||||
|
|
Before Width: | Height: | Size: 430 KiB After Width: | Height: | Size: 430 KiB |
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 107 KiB |
Before Width: | Height: | Size: 602 KiB After Width: | Height: | Size: 602 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |