fix currency
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user