reward history

This commit is contained in:
CHIEFSOFT\ameye
2024-10-08 06:04:20 -04:00
parent c156a2cc22
commit 4f0c5b003d
2 changed files with 18 additions and 2 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ $routes->post('/en/wrench/api/v1/connectmembers', 'WrenchFamily::familyCon
$routes->post('/en/wrench/api/v1/connectinvite', 'WrenchFamily::familyConnectInvite');
$routes->post('/en/wrench/api/v1/familyrewardhx', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/familyrewardhx', 'WrenchFamily::familyRewardHx'); // WrenchApi::apigate
$routes->post('/en/wrench/api/v1/familytransferstart', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/familytransfer', 'WrenchApi::apigate');
+17 -1
View File
@@ -144,5 +144,21 @@ class WrenchFamily extends BaseController
}
return $this->summaryReturnData($in,$out); //json_encode( $final_out );
}
//familysampletasks
public function familyRewardHx(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$in["action"] = WRENCHBOARD_FAMILY_TRANSFERHX;
$endpoint = "FAMILY_REWARD_HX-". $in["uid"]; // str_pad($in["uid"], 12, "0", STR_PAD_LEFT);
$out = $this->getCache($endpoint); // try find in cache
if ( count($out) == 0 ){
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
$out['internal_return'] = $ret;
$this->saveCache($endpoint,$out,1000);
}
return $this->summaryReturnData($in,$out); //json_encode( $final_out );
}
}