disable extra wallet for kids
This commit is contained in:
@@ -221,7 +221,7 @@ class WrenchWallet extends BaseController
|
||||
}
|
||||
$extraWallet = $this->wrenchWalletModel->kidsExtraWallet();
|
||||
|
||||
$out["result_list"][] = $extraWallet;
|
||||
// $out["result_list"][] = $extraWallet;
|
||||
// [
|
||||
// "amount" => 0,
|
||||
// "id" => 1,
|
||||
|
||||
@@ -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;
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user