fix currency

This commit is contained in:
CHIEFSOFT\ameye
2023-07-13 11:56:49 -04:00
parent 810b839721
commit c9c90322eb
+1 -1
View File
@@ -266,7 +266,7 @@ long WrenchStartPayment( CVars in, CVars &out ){
try {
long member_id = REQ_LONG( in, "member_id", 1, -1 );
long amount = REQ_LONG( in, "amount", 1, -1 );
REQ_STRING (in, "currency", 4, 15, "(.*)");
REQ_STRING (in, "currency", 2, 10, "(.*)");
REQ_STRING(in, "uid", 3, 150, "(.*)");
const PGresult *res = pgsql_query("SELECT uid,id AS member_id FROM members WHERE id=%lu AND uid='%s'", member_id, in["uid"].c_str());
if (res != NULL && pgsql_num_rows(res) > 0) {