promot data
This commit is contained in:
@@ -2,21 +2,23 @@
|
|||||||
|
|
||||||
namespace App\Controllers;
|
namespace App\Controllers;
|
||||||
|
|
||||||
|
use CodeIgniter\API\ResponseTrait;
|
||||||
|
|
||||||
class Promo extends BaseController
|
class Promo extends BaseController
|
||||||
{
|
{
|
||||||
|
use ResponseTrait;
|
||||||
public function promoStart(){
|
public function promoStart(){
|
||||||
|
|
||||||
$raw_json = file_get_contents('php://input');
|
$raw_json = file_get_contents('php://input');
|
||||||
$in = json_decode($raw_json, true);
|
$in = json_decode($raw_json, true);
|
||||||
$out =[];
|
$out =[];
|
||||||
|
$in["action"] = -1;
|
||||||
log_message('critical', "promoStart::promoStart ********* ALL ".serialize($in) );
|
log_message('critical', "promoStart::promoStart ********* ALL ".serialize($in) );
|
||||||
$in["loc"] = $_SERVER["REMOTE_ADDR"];
|
$in["loc"] = $_SERVER["REMOTE_ADDR"];
|
||||||
// $in['action'] = WRENCHBOARD_MARKET_PLAN01_START;
|
|
||||||
$in['limit'] = 10;
|
$in['limit'] = 10;
|
||||||
// $ret['WRENCHBOARD_MARKET_PLAN01_START'] = (new \App\Models\BackendModel())->wrenchboard_api($in, $out);
|
$out["promo_title"] = "This is the promo title";
|
||||||
return []; //json_encode( $final_out );
|
$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 ,";
|
||||||
|
return $this->respond( $this->summaryReturnData($in,$out), 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function promoTask(){
|
public function promoTask(){
|
||||||
|
|||||||
Reference in New Issue
Block a user