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);