diff --git a/www-api/app/Controllers/Promo.php b/www-api/app/Controllers/Promo.php index a58e33b6..0d193cb2 100644 --- a/www-api/app/Controllers/Promo.php +++ b/www-api/app/Controllers/Promo.php @@ -35,11 +35,28 @@ class Promo extends BaseController } public function promoVerify(){ + $raw_json = file_get_contents('php://input'); $in = json_decode($raw_json, true); - $in["action"] = -1; // bad number - we dont want formating WRENCHBOARD_ACCOUNT_JOBLIST; dont send this line , the formater will be confused - $out=[]; + $out =[]; + //$in["action"] = -1; + $in['action'] = WRENCHBOARD_MARKET_PLAN01_NEXT1; + $ret = $this->wrenchboard->wrenchboard_api($in, $out); + $out['internal_return'] = $ret; +// $in["promo"] = $promo; +// $in["promo_owner"] = $promoOwner; + + log_message('critical', "Promo::promoStart ********* ALL ".serialize($in) ); + $in["loc"] = $_SERVER["REMOTE_ADDR"]; + $in['limit'] = 10; +// $out["firstname"] = "Firstname"; +// $out["promo_title"] = "This is the promo title"; +// $out["promo_description"] = "This is the promo description , This is the promo description ,This is the promo description ,This is the promo description ,This is the promo description ,This is the promo description ,This is the promo description ,"; + $out["site_name"]= "WrenchBoard"; + // $out["server_name"]= "https://www.wrenchboard.com"; + $out['yyyy'] = '2024'; + // $out['user_server_name'] = 'https://dev-users.wrenchboard.com'; log_message('critical', "***** ***** Promo::promoVerify Ret "); return $this->respond( $this->summaryReturnData($in,$out), 200);