WrenchPromoLoad

This commit is contained in:
CHIEFSOFT\ameye
2024-09-16 18:03:41 -04:00
parent cdc864e44a
commit b22ab61ef4
2 changed files with 16 additions and 3 deletions
+8 -2
View File
@@ -16,6 +16,7 @@
#include <curl/curl.h>
long WrenchMarketImport(CVars in, CVars &out);
long WrenchPromoLoad(CVars in, CVars &out);
long market_calls(CVars in, CVars &out) {
logfmt(logINFO, "market_calls()");
@@ -30,8 +31,7 @@ long market_calls(CVars in, CVars &out) {
break;
case WRENCHBOARD_MARKET_PLAN01_NEXT1:
snprintf(vname, sizeof (vname), "SELECT uid AS member_uid, profile_pic AS saved_file_name FROM members WHERE uid ='%s'", in["file_uid"].c_str());
// market_email(WRENCHBOARD_MARKET_PLAN01_START, in, in);
return WrenchPromoLoad(in, out);
break;
}
@@ -74,7 +74,13 @@ logfmt(logINFO, "WrenchMarketImport()");
return ret;
}
long WrenchPromoLoad(CVars in, CVars &out) {
logfmt(logINFO, "WrenchPromoLoad()");
// $in["promo"] = $promo;
// $in["promo_owner"] = $promoOwner;
return 0 ;
}
/*
#define WRENCHBOARD_MARKET_PLAN01_START 220001
#define WRENCHBOARD_MARKET_PLAN01_NEXT1 220003
+8 -1
View File
@@ -12,7 +12,14 @@ class Promo extends BaseController
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out =[];
$in["action"] = -1;
//$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', "promoStart::promoStart ********* ALL ".serialize($in) );
$in["loc"] = $_SERVER["REMOTE_ADDR"];
$in['limit'] = 10;