From 272e9ffd3972cc0f4b6c97b0463414364f50754a Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 18 Oct 2024 23:17:53 -0400 Subject: [PATCH] wallet call --- www-api/app/Controllers/WrenchWallet.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/www-api/app/Controllers/WrenchWallet.php b/www-api/app/Controllers/WrenchWallet.php index 6f898a15..390d9e12 100644 --- a/www-api/app/Controllers/WrenchWallet.php +++ b/www-api/app/Controllers/WrenchWallet.php @@ -66,19 +66,17 @@ class WrenchWallet extends BaseController $in = json_decode($raw_json, true); $in["action"] = WRENCHBOARD_VIRTUAL_CARDADD; $out=[]; - $ret = $this->wrenchboard->wrenchboard_api($in, $out); $out['internal_return'] = $ret; log_message('critical', "requestVirtualCard ********* ALL ".serialize($out) ); - /* - $local_url = "http://".$this->micro_service_net1.":3038/create"; - $out = $this->APIcall('POST', $local_url, $in); - */ + // concluded need to register user card + if ( $out['request_id'] !='' && $out['request_uid'] !=''){ + $local_url = "http://".$this->micro_service_net1.":3038/create"; + $out = $this->APIcall('POST', $local_url, $out); + } log_message('critical', "WrenchWallet::requestVirtualCard ********* ALL ".serialize($out) ); - return $this->respond( $this->summaryReturnData($in,$out), 200); - } public function redeemOptions(){ log_message('critical', "redeemOptions 0001");