out["status"] = "OK";

This commit is contained in:
CHIEFSOFT\ameye
2024-11-18 13:42:44 -05:00
parent 40637e4abc
commit f203267c96
+8 -11
View File
@@ -85,19 +85,16 @@ long WrenchPromoGetMember( CVars in, CVars &out )
" WHERE admin_id = %lu AND uis = '%s' ",admin_id,in["member_uid"].c_str());
if (res != NULL && pgsql_num_rows(res) > 0) {
out["total_record"] = pgsql_num_rows(res);
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;
map<const char*, const char*>f = pgsql_fetch_assoc(res, 0);
CVars rec;
map_to_cvars(f, rec);
out = rec;
ret = PHP_API_OK;
out["status"] = "OK";
}
ret = PHP_API_OK;
out["status"] = "OK";
} catch (bad_parameter) {
out["status"] = "ERROR";
logfmt(logINFO, "ERROR CALL long WrenchPromoGetMember(CVars in, CVars &out)");
}