Compare commits

...

4 Commits

Author SHA1 Message Date
root 49eeafac54 adjust config.php file 2025-05-07 23:52:58 +01:00
root bdf1adbfe4 fix getNetworkHyper 2025-05-07 23:39:05 +01:00
espoir db53b050e5 no commit 2025-05-07 16:37:38 +00:00
root 0d6a007e3a nano sante wallet fixer en dure la valeur du prix de l'hyperviseur 2024-12-06 14:25:26 +01:00
2446 changed files with 41 additions and 21 deletions

0
Doxyfile Normal file → Executable file
View File

View File

@ -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');

View File

@ -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,

View File

@ -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();

View File

@ -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);

0
application/controllers/NanoHealthController.php Normal file → Executable file
View File

0
application/helpers/functions_helper.php Normal file → Executable file
View File

0
application/models/Nano_credit_model.php Normal file → Executable file
View File

0
application/models/Nano_health_model.php Normal file → Executable file
View File

0
application/models/Wallet_model.php Normal file → Executable file
View File

View File

0
application/models/pagination/CareRequests_model.php Normal file → Executable file
View File

0
application/models/pagination/DrugAndDevices_model.php Normal file → Executable file
View File

View File

View File

View File

0
application/models/pagination/Insurances_model.php Normal file → Executable file
View File

0
application/models/pagination/Invoices_model.php Normal file → Executable file
View File

View File

View File

View File

@ -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 ";

0
application/views/include/delete_modal.php Normal file → Executable file
View File

0
application/views/include/loader.php Normal file → Executable file
View File

0
application/views/nano_credit/historique_savings.php Normal file → Executable file
View File

View File

@ -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"
},

0
dist/css/custom/levels-table.css vendored Normal file → Executable file
View File

0
dist/css/theme.css vendored Normal file → Executable file
View File

0
dist/fontawesome/LICENSE.txt vendored Normal file → Executable file
View File

0
dist/fontawesome/css/all.css vendored Normal file → Executable file
View File

0
dist/fontawesome/css/all.min.css vendored Normal file → Executable file
View File

0
dist/fontawesome/css/brands.css vendored Normal file → Executable file
View File

0
dist/fontawesome/css/brands.min.css vendored Normal file → Executable file
View File

0
dist/fontawesome/css/fontawesome.css vendored Normal file → Executable file
View File

0
dist/fontawesome/css/fontawesome.min.css vendored Normal file → Executable file
View File

0
dist/fontawesome/css/regular.css vendored Normal file → Executable file
View File

0
dist/fontawesome/css/regular.min.css vendored Normal file → Executable file
View File

0
dist/fontawesome/css/solid.css vendored Normal file → Executable file
View File

0
dist/fontawesome/css/solid.min.css vendored Normal file → Executable file
View File

0
dist/fontawesome/css/svg-with-js.css vendored Normal file → Executable file
View File

0
dist/fontawesome/css/svg-with-js.min.css vendored Normal file → Executable file
View File

0
dist/fontawesome/css/v4-shims.css vendored Normal file → Executable file
View File

0
dist/fontawesome/css/v4-shims.min.css vendored Normal file → Executable file
View File

0
dist/fontawesome/js/all.js vendored Normal file → Executable file
View File

0
dist/fontawesome/js/all.min.js vendored Normal file → Executable file
View File

0
dist/fontawesome/js/brands.js vendored Normal file → Executable file
View File

0
dist/fontawesome/js/brands.min.js vendored Normal file → Executable file
View File

0
dist/fontawesome/js/fontawesome.js vendored Normal file → Executable file
View File

0
dist/fontawesome/js/fontawesome.min.js vendored Normal file → Executable file
View File

0
dist/fontawesome/js/regular.js vendored Normal file → Executable file
View File

0
dist/fontawesome/js/regular.min.js vendored Normal file → Executable file
View File

0
dist/fontawesome/js/solid.js vendored Normal file → Executable file
View File

0
dist/fontawesome/js/solid.min.js vendored Normal file → Executable file
View File

0
dist/fontawesome/js/v4-shims.js vendored Normal file → Executable file
View File

0
dist/fontawesome/js/v4-shims.min.js vendored Normal file → Executable file
View File

0
dist/fontawesome/less/_animated.less vendored Normal file → Executable file
View File

0
dist/fontawesome/less/_bordered-pulled.less vendored Normal file → Executable file
View File

0
dist/fontawesome/less/_core.less vendored Normal file → Executable file
View File

0
dist/fontawesome/less/_fixed-width.less vendored Normal file → Executable file
View File

0
dist/fontawesome/less/_icons.less vendored Normal file → Executable file
View File

0
dist/fontawesome/less/_larger.less vendored Normal file → Executable file
View File

0
dist/fontawesome/less/_list.less vendored Normal file → Executable file
View File

0
dist/fontawesome/less/_mixins.less vendored Normal file → Executable file
View File

0
dist/fontawesome/less/_rotated-flipped.less vendored Normal file → Executable file
View File

0
dist/fontawesome/less/_screen-reader.less vendored Normal file → Executable file
View File

0
dist/fontawesome/less/_shims.less vendored Normal file → Executable file
View File

0
dist/fontawesome/less/_stacked.less vendored Normal file → Executable file
View File

0
dist/fontawesome/less/_variables.less vendored Normal file → Executable file
View File

0
dist/fontawesome/less/brands.less vendored Normal file → Executable file
View File

0
dist/fontawesome/less/fontawesome.less vendored Normal file → Executable file
View File

0
dist/fontawesome/less/regular.less vendored Normal file → Executable file
View File

0
dist/fontawesome/less/solid.less vendored Normal file → Executable file
View File

0
dist/fontawesome/less/v4-shims.less vendored Normal file → Executable file
View File

0
dist/fontawesome/metadata/categories.yml vendored Normal file → Executable file
View File

0
dist/fontawesome/metadata/icons.json vendored Normal file → Executable file
View File

0
dist/fontawesome/metadata/icons.yml vendored Normal file → Executable file
View File

0
dist/fontawesome/metadata/shims.json vendored Normal file → Executable file
View File

0
dist/fontawesome/metadata/shims.yml vendored Normal file → Executable file
View File

0
dist/fontawesome/metadata/sponsors.yml vendored Normal file → Executable file
View File

0
dist/fontawesome/scss/_animated.scss vendored Normal file → Executable file
View File

0
dist/fontawesome/scss/_bordered-pulled.scss vendored Normal file → Executable file
View File

0
dist/fontawesome/scss/_core.scss vendored Normal file → Executable file
View File

0
dist/fontawesome/scss/_fixed-width.scss vendored Normal file → Executable file
View File

0
dist/fontawesome/scss/_icons.scss vendored Normal file → Executable file
View File

0
dist/fontawesome/scss/_larger.scss vendored Normal file → Executable file
View File

0
dist/fontawesome/scss/_list.scss vendored Normal file → Executable file
View File

0
dist/fontawesome/scss/_mixins.scss vendored Normal file → Executable file
View File

0
dist/fontawesome/scss/_rotated-flipped.scss vendored Normal file → Executable file
View File

0
dist/fontawesome/scss/_screen-reader.scss vendored Normal file → Executable file
View File

0
dist/fontawesome/scss/_shims.scss vendored Normal file → Executable file
View File

0
dist/fontawesome/scss/_stacked.scss vendored Normal file → Executable file
View File

0
dist/fontawesome/scss/_variables.scss vendored Normal file → Executable file
View File

0
dist/fontawesome/scss/brands.scss vendored Normal file → Executable file
View File

0
dist/fontawesome/scss/fontawesome.scss vendored Normal file → Executable file
View File

0
dist/fontawesome/scss/regular.scss vendored Normal file → Executable file
View File

0
dist/fontawesome/scss/solid.scss vendored Normal file → Executable file
View File

0
dist/fontawesome/scss/v4-shims.scss vendored Normal file → Executable file
View File

0
dist/fontawesome/sprites/brands.svg vendored Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 430 KiB

After

Width:  |  Height:  |  Size: 430 KiB

0
dist/fontawesome/sprites/regular.svg vendored Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 107 KiB

After

Width:  |  Height:  |  Size: 107 KiB

0
dist/fontawesome/sprites/solid.svg vendored Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 602 KiB

After

Width:  |  Height:  |  Size: 602 KiB

0
dist/fontawesome/svgs/brands/500px.svg vendored Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Some files were not shown because too many files have changed in this diff Show More