Job stats

This commit is contained in:
CHIEFSOFT\ameye
2024-07-18 12:03:15 -04:00
parent 1185fb97ec
commit 9ec7f55046
5 changed files with 31 additions and 2 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ $routes->post('/en/wrench/api/v1/sendmoney', 'WrenchWallet::sendMoney')
$routes->post('/en/wrench/api/v1/sendinterest', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/waitinginterest', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/intereststats', 'WrenchJobs::interestStats');
$routes->post('/en/wrench/api/v1/sendmoneyfee', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/getpendingjobs', 'WrenchApi::apigate');
+11
View File
@@ -12,6 +12,17 @@ class WrenchJobs extends BaseController
$this->request = $request = \Config\Services::request();
}
public function interestStats(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$in["action"] = WRENCHBOARD_JOB_STATS_INTEREST;
$out=[];
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
$out['internal_return'] = $ret;
log_message('critical', "***** ***** WrenchJobs::interestStats Ret = ".$ret );
return $this->respond( $this->summaryReturnData($in,$out), 200);
}
public function contractHx(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
+1
View File
@@ -165,6 +165,7 @@ define('WRENCHBOARD_JOB_OFFER_CONCLUDE',13035);
define('WRENCHBOARD_JOB_SEND_QUESTION',13036);
define('WRENCHBOARD_JOB_MRKTINT_QUEST',13037);
define('WRENCHBOARD_JOB_REPLY_QUESTION',13038);
const WRENCHBOARD_JOB_STATS_INTEREST = 13048;
//define('WRENCHBOARD_JOB_REPLY_QUESTION',13038);
define('WRENCHBOARD_JOB_EXTEND_EXPIRE' ,13041);