added wallet find
This commit is contained in:
@@ -48,12 +48,8 @@ class WrenchJobs extends BaseController
|
||||
|
||||
private function refreshJobsData(){
|
||||
$in =[
|
||||
'member_id' => 1,
|
||||
'sessionid' => '6938B15ACB7A70699AD9E8913A49AF0C0CA5EF3DA2D5DC0F73A09DC797A819E8' ,
|
||||
'uid' => '3119b744-42ad-4834-bb83-b737588754ca',
|
||||
'limit' => 20,
|
||||
'page' => 1,
|
||||
'action' => 11014
|
||||
'limit' => 60,
|
||||
'page' => 1
|
||||
];
|
||||
$endpoint = $endpoint = "MARKET_JOB_DATA";
|
||||
$local_url = "http://".$this->micro_service_net1.":3033/marketjobs";
|
||||
@@ -69,7 +65,7 @@ class WrenchJobs extends BaseController
|
||||
$in["action"] = -1; // bad number - we dont want formating WRENCHBOARD_ACCOUNT_JOBLIST; dont send this line , the formater will be confused
|
||||
$out=[];
|
||||
//$endpoint = "JOB_DATA-". $in["uid"];
|
||||
$endpoint = "MARKET_JOB_DATA";
|
||||
$endpoint = "MARKET_JOB_DATA"; // All jobs Data
|
||||
|
||||
$out = $this->getCache($endpoint);
|
||||
$countItem = 0;
|
||||
@@ -88,6 +84,13 @@ class WrenchJobs extends BaseController
|
||||
log_message('critical', "***** ***** WrenchJobs::getJobsData Cache Done:::Ret ");
|
||||
}
|
||||
|
||||
// I need your wallet country here
|
||||
$local_url = "http://".$this->micro_service_net1.":3033/walletcountry";
|
||||
$outW = $this->APIcall('GET', $local_url, $in);
|
||||
|
||||
// Fileter result_list to wallet country
|
||||
|
||||
|
||||
$endpoint = "WRENCH_JOB_INTEREST_COUNT";
|
||||
$int_list = $this->getCache($endpoint)["result_list"];
|
||||
$out["interest_list"] = ( isset($int_list) && is_array($int_list) ) ? $int_list : [];
|
||||
|
||||
Reference in New Issue
Block a user