in["promo"].c_str(), in["limit"].Long()
This commit is contained in:
@@ -292,13 +292,13 @@ long RefreshPromoActivities(CVars in, CVars &out){
|
||||
long ReferEmailsNotification(){
|
||||
long ret = PHP_API_BAD_PARAM;
|
||||
const PGresult *res;
|
||||
|
||||
CVars out;
|
||||
//in["promo"].c_str(), in["limit"].Long()
|
||||
CVars out, in;
|
||||
res = pgsql_query(" SELECT id AS promo_id, a.firstname AS send_firstname,a.lastname AS send_lastname,"
|
||||
" p.firstname,p.lastname, 'REFPROMO-'||p.uid AS refer_link , p.email "
|
||||
" FROM promo_member p "
|
||||
" LEFT JOIN promo_admin a ON a.id = p.admin_id "
|
||||
" WHERE email_sent IS NULL AND status = 1 LIMIT 20", in["promo"].c_str(), in["limit"].Long());
|
||||
" WHERE email_sent IS NULL AND status = 1 LIMIT 20");
|
||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||
out["total_record"] = pgsql_num_rows(res);
|
||||
for (int i = 0, n = pgsql_num_rows(res); i < n; i++) {
|
||||
|
||||
Reference in New Issue
Block a user