reward history
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user