From 7515abfbe0188aeeed6ead98ff67c21fbde78b17 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 30 Oct 2024 10:20:31 -0400 Subject: [PATCH] disable extra wallet for kids --- www-api/app/Controllers/WrenchWallet.php | 2 +- www-api/app/Models/WrenchWalletModel.php | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/www-api/app/Controllers/WrenchWallet.php b/www-api/app/Controllers/WrenchWallet.php index 98dc1e22..6bb4f16d 100644 --- a/www-api/app/Controllers/WrenchWallet.php +++ b/www-api/app/Controllers/WrenchWallet.php @@ -221,7 +221,7 @@ class WrenchWallet extends BaseController } $extraWallet = $this->wrenchWalletModel->kidsExtraWallet(); - $out["result_list"][] = $extraWallet; +// $out["result_list"][] = $extraWallet; // [ // "amount" => 0, // "id" => 1, diff --git a/www-api/app/Models/WrenchWalletModel.php b/www-api/app/Models/WrenchWalletModel.php index 252b1a9b..875cdaed 100644 --- a/www-api/app/Models/WrenchWalletModel.php +++ b/www-api/app/Models/WrenchWalletModel.php @@ -5,14 +5,14 @@ use CodeIgniter\Model; class WrenchWalletModel extends Model { -protected $allSettings; - public function __construct( $allSettings ) +protected array $allSettings; + public function __construct( $allSettings ) { parent::__construct(); $this->allSettings =$allSettings; log_message('critical', "WrenchWalletModel _construct"); } - public function kidsExtraWallet(){ + public function kidsExtraWallet():array{ return [ "amount" => 0, @@ -36,6 +36,4 @@ protected $allSettings; ]; } - - } \ No newline at end of file