family connect functions
This commit is contained in:
@@ -116,7 +116,9 @@ $routes->post('/en/wrench/api/v1/relativeeditkids', 'WrenchFamily::relativ
|
|||||||
$routes->post('/en/wrench/api/v1/relativesettings', 'WrenchFamily::relativeSettings');
|
$routes->post('/en/wrench/api/v1/relativesettings', 'WrenchFamily::relativeSettings');
|
||||||
$routes->post('/en/wrench/api/v1/relativereminder', 'WrenchFamily::relativeReminder');
|
$routes->post('/en/wrench/api/v1/relativereminder', 'WrenchFamily::relativeReminder');
|
||||||
|
|
||||||
$routes->post('/en/wrench/api/v1/connect', 'WrenchFamily::familyConnect');
|
$routes->post('/en/wrench/api/v1/connect', 'WrenchFamily::familyConnect');
|
||||||
|
$routes->post('/en/wrench/api/v1/connectmembers', 'WrenchFamily::familyConnectMembers');
|
||||||
|
$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', 'WrenchApi::apigate');
|
||||||
|
|||||||
@@ -14,6 +14,49 @@ class WrenchFamily extends BaseController
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function familyConnectMembers(){
|
||||||
|
|
||||||
|
$raw_json = file_get_contents('php://input');
|
||||||
|
$in = json_decode($raw_json, true);
|
||||||
|
$out =[];
|
||||||
|
|
||||||
|
// $in["action"] = WRENCHBOARD_RELATIVES_EDITKIDS;
|
||||||
|
// $ret = $this->wrenchboard->wrenchboard_api($in, $out);
|
||||||
|
|
||||||
|
$out["current_invitation"] =[
|
||||||
|
[
|
||||||
|
"name" => "Faith",
|
||||||
|
"time" => "0000-00-00",
|
||||||
|
"expire" => 1000
|
||||||
|
]
|
||||||
|
];
|
||||||
|
$out["allow_invite"] = 100;
|
||||||
|
$out['internal_return'] = 0;
|
||||||
|
|
||||||
|
return $this->summaryReturnData($in,$out);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function familyConnectInvite(){
|
||||||
|
|
||||||
|
$raw_json = file_get_contents('php://input');
|
||||||
|
$in = json_decode($raw_json, true);
|
||||||
|
$out =[];
|
||||||
|
|
||||||
|
// $in["action"] = WRENCHBOARD_RELATIVES_EDITKIDS;
|
||||||
|
// $ret = $this->wrenchboard->wrenchboard_api($in, $out);
|
||||||
|
|
||||||
|
$out["current_invitation"] =[
|
||||||
|
[
|
||||||
|
"name" => "Faith",
|
||||||
|
"time" => "0000-00-00",
|
||||||
|
"expire" => 1000
|
||||||
|
]
|
||||||
|
];
|
||||||
|
$out["allow_invite"] = 100;
|
||||||
|
$out['internal_return'] = 0;
|
||||||
|
|
||||||
|
return $this->summaryReturnData($in,$out);
|
||||||
|
}
|
||||||
public function familyConnect(){
|
public function familyConnect(){
|
||||||
|
|
||||||
$raw_json = file_get_contents('php://input');
|
$raw_json = file_get_contents('php://input');
|
||||||
|
|||||||
Reference in New Issue
Block a user