new back office call

This commit is contained in:
CHIEFSOFT\ameye
2024-07-12 10:59:18 -04:00
parent 13fad18fe7
commit af2f8883f8
2 changed files with 27 additions and 3 deletions
+2 -1
View File
@@ -174,7 +174,8 @@ enum { PARTNER_STRIPE };
#define WRENCHBOARD_BKO_RESEND_OFFER 10025
#define WRENCHBOARD_BKO_MARKETING_MSG 10026
#define WRENCHBOARD_BKO_SEND_PUSH 10035
#define WRENCHBOARD_BKO_SEND_PUSH 10035
#define WRENCHBOARD_BKO_REFRESH_WALLET 10036
#define WRENCHBOARD_BKO_END 10999
//**************************************************************
+25 -2
View File
@@ -19,7 +19,7 @@
long BkoCommonSessionCheck(long backoffice_id,long shop,long acc, const char *sessionid, int create );
long BkoResendOffer(CVars in, CVars &out);
long BkoRefreshWallet(CVars in, CVars &out);
long BkoResendMarketing(CVars in, CVars &out);
struct MemoryStruct {
@@ -67,12 +67,35 @@ long bko_calls(CVars in, CVars &out)
case WRENCHBOARD_BKO_SEND_PUSH:
return BkoSendPush( in, out);
break;
break;
case WRENCHBOARD_BKO_REFRESH_WALLET:
return BkoRefreshWallet(in, out);
break;
case
}
logfmt( logINFO, "/bko_calls()" );
return 0;
}
long BkoRefreshWallet(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 BkoResendMarketing(CVars in, CVars &out)
{
logfmt( logINFO, "BkoResendMarketing()" );