This commit is contained in:
@@ -87,10 +87,12 @@ class WrenchJobs extends BaseController
|
||||
$endpointW = "USER_WALLET_COUNTRY-". $in["uid"];
|
||||
$outW = $this->getCache($endpointW);
|
||||
// I need your wallet country here
|
||||
if ( is_array($outW) && is_array($outW["result_list"]) && count($outW["result_list"]) > 0){
|
||||
if ( !is_array($outW["result_list"])){
|
||||
$local_urlW = "http://".$this->micro_service_net1.":3033/walletcountry";
|
||||
$outW = $this->APIcall('GET', $local_urlW, $in);
|
||||
$this->saveCache($endpointW,$outW,2880);
|
||||
if ( is_array($outW["result_list"]) && count($outW["result_list"]) > 0){
|
||||
$this->saveCache($endpointW,$outW,2880);
|
||||
}
|
||||
}
|
||||
|
||||
// Fileter result_list to wallet country
|
||||
|
||||
Reference in New Issue
Block a user