This commit is contained in:
CHIEFSOFT\ameye
2024-07-12 12:52:35 -04:00
parent 8ca1fa54d7
commit bcb011fe7e
2 changed files with 13 additions and 2 deletions
+3 -2
View File
@@ -86,6 +86,7 @@ $routes->post('/en/wrench/api/v1/jobmessage', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/pendingjob', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/paymenthx', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/purchasehx', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/contracthx', 'WrenchJobs::contractHx');
$routes->post('/en/wrench/api/v1/cachecontacts', 'WrenchApi::apigate');
@@ -94,8 +95,8 @@ $routes->post('/en/wrench/api/v1/stepresetpass', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/starttopup', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/topupresult', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/preferences', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/setpreferences', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/preferences', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/setpreferences', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/jobmanageragree', 'WrenchApi::apigate');
+10
View File
@@ -12,6 +12,16 @@ class WrenchJobs extends BaseController
$this->request = $request = \Config\Services::request();
}
public function contractHx(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out=[];
$local_url = "http://".$this->micro_service_net1.":3033/contractHx";
$outX = $this->APIcall('GET', $local_url, ["message"=>$out]);
return $this->respond( $this->summaryReturnData($in,$out), 200);
}
public function sendJobInterest(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);