load refer

This commit is contained in:
CHIEFSOFT\ameye
2024-11-30 04:34:17 -05:00
parent f944692d03
commit 64681a6c8c
3 changed files with 24 additions and 0 deletions
+1
View File
@@ -270,6 +270,7 @@ define('WRENCHBOARD_ACCOUNT_UPDATE_PREFS', 11066);
define('WRENCHBOARD_ACCOUNT_MYPAGE', 11070);
define('WRENCHBOARD_ACCOUNT_PAGEINTRO', 11071);
const WRENCHBOARD_LOAD_REFERLINK = 11072;
const WRENCHBOARD_VIRTUAL_CARDADD = 11080;
const WRENCHBOARD_VIRTUAL_FAMILY_CARD = 11082;
+2
View File
@@ -21,6 +21,8 @@ $routes->post('/en/wrench/api/v1/faqdata', 'WrenchFaq::apigate');
$routes->post('/en/wrench/api/v1/helpdata', 'WrenchFaq::helpgate');
$routes->post('/en/wrench/api/v1/learnmore', 'WrenchFaq::learnMoreUser');
$routes->post('/en/wrench/api/v1/loadrefer', 'WrenchAccount::loadRefer');
$routes->post('/en/wrench/api/v1/apigate', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/generics', 'WrenchApi::apigate');
+21
View File
@@ -45,4 +45,25 @@ class WrenchAccount extends BaseController
// return $this->summaryReturnData($in,$out); //json_encode( $final_out );
}
public function loadRefer(){
$out=[];
$raw_json = file_get_contents('php://input');
$raw_array = json_decode($raw_json, true);
$in = $raw_array;
$in["action"] = WRENCHBOARD_LOAD_REFERLINK;
$in["loc"] = $_SERVER["REMOTE_ADDR"];
// $wrenchboard = new \App\Models\BackendModel();
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
$out['internal_return'] = $ret;
return $this->respond( $this->summaryReturnData($in,$out), 200);
}
}