Fix wallet

This commit is contained in:
CHIEFSOFT\ameye
2024-11-02 02:13:24 -04:00
parent 42faa1b655
commit cbccd8b085
2 changed files with 17 additions and 2 deletions
+2 -2
View File
@@ -188,10 +188,10 @@ class AirFlow extends BaseController
$in["action"] =WRB_JOB_CRONJOB;
$in['call_action'] = WRB_CRONJOB_PROCESS_VUSA;
$in['one_limit'] = 3;
$ret['WRB_CRONJOB_JOBDUE_REMINDER'] = $this->wrenchboard->wrenchboard_api($in, $out);
$this->wrenchboard->wrenchboard_api($in, $out);
}
}
log_message('critical', "AirFlow::flowStripeCard ********* ALL ".serialize($in) );
return []; //json_encode( $final_out );
}
+15
View File
@@ -212,6 +212,21 @@ class WrenchWallet extends BaseController
$this->saveCache($endpoint,$out,1500);
}
}
if ( is_array($out) && isset($out['result_list'])){
foreach ($out['result_list'] as $index=>$item){
if ($item['code']=='USD'){
$out['result_list'][$index]['extra_actions'] =
[
'ADD_VIRTUAL_CARD' => $this->wrenchWalletModel->addVirtualCardWallet()
];
}
else{
$out['result_list'][$index]['extra_actions'] = [];
}
}
}
$extraWallet = $this->wrenchWalletModel->kidsExtraWallet();
//$out["result_list"][] = $extraWallet;