get meber

This commit is contained in:
CHIEFSOFT\ameye
2024-11-18 13:31:59 -05:00
parent d76124776f
commit 40637e4abc
+3 -3
View File
@@ -87,13 +87,13 @@ long WrenchPromoGetMember( CVars in, CVars &out )
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++) {
map<const char*, const char*>f = pgsql_fetch_assoc(res, i);
map<const char*, const char*>f = pgsql_fetch_assoc(res, 0);
if (f.empty()) continue;
CVars rec;
map_to_cvars(f, rec);
out = rec;
}
ret = PHP_API_OK;
}
ret = PHP_API_OK;
out["status"] = "OK";