diff --git a/wrenchboard/src/shared_tool/smoney.cc b/wrenchboard/src/shared_tool/smoney.cc index 9edb7145..aaf31c63 100644 --- a/wrenchboard/src/shared_tool/smoney.cc +++ b/wrenchboard/src/shared_tool/smoney.cc @@ -286,7 +286,7 @@ long INTW_configure(CVars in, CVars &out) { long do_transferPayment(CVars in) { long ret = PHP_API_BAD_PARAM; CVars out; - + long member_id = REQ_LONG(in, "member_id", 1, -1); long customer_id = REQ_LONG(in, "customer_id", 1, -1); long transfer_id = REQ_LONG(in, "transfer_id", 1, -1); long payMode = REQ_LONG(in, "mode", 1, -1); @@ -316,7 +316,7 @@ long do_transferPayment(CVars in) { ); */ - ret = load_db_record(out, "SELECT balance FROM members WHERE id = %lu AND status = 1", customer_id); + ret = load_db_record(out, "SELECT balance FROM members WHERE id = %lu AND status = 1", member_id); if (ret < 1L) { throw new bad_parameter(out, "senderid"); }