promotion files

This commit is contained in:
CHIEFSOFT\ameye
2023-09-23 16:24:56 -04:00
parent 91f8d264e5
commit 3a1d397a74
6 changed files with 65 additions and 1 deletions
+21 -1
View File
@@ -20,6 +20,7 @@
long BkoCommonSessionCheck(long backoffice_id,long shop,long acc, const char *sessionid, int create );
long BkoResendOffer(CVars in, CVars &out);
long BkoSendPush(CVars in, CVars &out);
long BkoResendMarketing(CVars in, CVars &out);
struct MemoryStruct {
char *memory;
@@ -59,7 +60,11 @@ long bko_calls(CVars in, CVars &out)
case WRENCHBOARD_BKO_RESEND_OFFER:
return BkoResendOffer( in, out);
break;
case WRENCHBOARD_BKO_MARKETING_MSG:
return BkoResendMarketing( in, out );
break;
case WRENCHBOARD_BKO_SEND_PUSH:
return BkoSendPush( in, out);
break;
@@ -68,6 +73,21 @@ long bko_calls(CVars in, CVars &out)
return 0;
}
long BkoResendMarketing(CVars in, CVars &out)
{
logfmt( logINFO, "BkoResendMarketing()" );
REQ_STRING (in, "uid", 5, 149, "(.*)");
CVars x;
if ( load_db_record( x, "SELECT * FROM marketing_list WHERE uid='%s'", in["uid"].c_str() )){
market_email(WRENCHBOARD_BKO_MARKETING_MSG, x, out);
}
logfmt( logINFO, "/BkoResendMarketing()" );
return 0;
}
long BkoResendOffer(CVars in, CVars &out)
{
logfmt( logINFO, "BkoResendOffer()" );