From b83ac18972c438bcee98a19b1895f88c42dd9b50 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Mon, 2 Dec 2024 16:42:34 -0500 Subject: [PATCH] refer link in code --- wrenchboard/src/shared_tool/site_crons.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrenchboard/src/shared_tool/site_crons.cc b/wrenchboard/src/shared_tool/site_crons.cc index 44a6bc68..5e0f14d8 100644 --- a/wrenchboard/src/shared_tool/site_crons.cc +++ b/wrenchboard/src/shared_tool/site_crons.cc @@ -295,7 +295,7 @@ long ReferLinkProcessing(){ const PGresult *res; //in["promo"].c_str(), in["limit"].Long() CVars out, in; - res = pgsql_query(" SELECT substring(refer_link,0,9) AS uid_part,email, id ,uid,substring(refer_link,9)::INT AS member_id FROM referlink_signup " + res = pgsql_query(" SELECT refer_link, substring(refer_link,0,9) AS uid_part,email, id ,uid,substring(refer_link,9)::INT AS member_id FROM referlink_signup " " WHERE status = 1 LIMIT 20"); if (res != NULL && pgsql_num_rows(res) > 0) { out["total_record"] = pgsql_num_rows(res);