From f8ddfcc81dd7daa65c0d2e4fdda0eac28c85f26b Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 27 Jul 2023 06:41:42 -0400 Subject: [PATCH] member_id --- wrenchboard/src/shared_tool/smoney.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); }