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