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
+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);
}
}