This commit is contained in:
CHIEFSOFT\ameye
2024-09-23 05:12:50 -04:00
parent 659109624c
commit 841cab75eb
7 changed files with 211 additions and 177 deletions
+2
View File
@@ -53,6 +53,8 @@ $routes->get('/en/flow/api/v1/processtransfer', 'AirFlow::flowProcessTransf
$routes->get('/en/flow/api/v1/scheduletransfer', 'AirFlow::flowScheduleTransfer');
$routes->get('/en/flow/api/v1/testnotifications', 'AirFlow::flowTestNotifications');
$routes->get('/en/flow/api/v1/automarket01', 'AirFlow::flowAutoMarket01');
$routes->get('/en/flow/api/v1/offersmissed', 'AirFlow::flowOfferMissed');
include "RoutesV1.php";
+12 -1
View File
@@ -14,6 +14,8 @@ define('WRB_CRONJOB_TESTNOTIFICATIONS', 779);
define('WRB_CRONJOB_SCHEULETRANSFER', 780);
define('WRB_CRONJOB_PROCESSTRANSFER', 781);
define('WRB_CRONJOB_AUTO_OFFEREXPIRE', 785);
define('WRB_CRONJOB_PENDINGSM', 790) ;
class AirFlow extends BaseController
@@ -49,7 +51,16 @@ class AirFlow extends BaseController
// return []; //json_encode( $final_out );
}
//
public function flowOfferMissed(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$in["action"] = WRB_CRONJOB_AUTO_OFFEREXPIRE;
$out =[];
log_message('critical', "AirFlow::flowOfferMissed ********* ALL ".serialize($in) );
$ret['WRB_CRONJOB_AUTO_OFFEREXPIRE'] = (new \App\Models\BackendModel())->wrenchboard_api($in, $out);
return []; //json_encode( $final_out );
}
public function flowInterestcount(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);