Job stats
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user