extra actions

This commit is contained in:
CHIEFSOFT\ameye
2024-10-31 06:27:31 -04:00
parent ad378ddb60
commit 1394c0a712
3 changed files with 18 additions and 0 deletions
+4
View File
@@ -58,6 +58,10 @@ $routes->get('/en/flow/api/v1/offersmissed', 'AirFlow::flowOfferMissed');
$routes->get('/en/flow/api/v1/holidaybroadcast', 'AirFlow::flowHolidayBroadCast');
$routes->get('/en/flow/api/v1/refreshresoucres', 'AirFlow::flowRefreshResources');
$routes->group('/en/wrench/api/v1/', static function ($routes) {
$routes->get('/stripe-card', 'AirFlow::flowStripeCard');
});
include "RoutesV1.php";
/*
+8
View File
@@ -111,6 +111,14 @@ class AirFlow extends BaseController
}
return []; //json_encode( $final_out );
}
public function flowStripeCard():array{
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out =[];
log_message('critical', "AirFlow::flowStripeCard ********* ALL ".serialize($in) );
return []; //json_encode( $final_out );
}
public function flowApproveReminder(){
$raw_json = file_get_contents('php://input');
+6
View File
@@ -241,6 +241,12 @@ class WrenchWallet extends BaseController
}
}
if ( is_array($out) && isset($out['result_list'])){
foreach ($out['result_list'] as $index=>$item){
$out['result_list'][$index]['extra_actions'] = ['common soon '];
}
}
if ( count($out["result_list"])> 0 ){
$owner_country = $out["result_list"][0]['owner_country'];
// $wallet_country = $first_names = array_column($owner_country , 'country');;