member_id

This commit is contained in:
CHIEFSOFT\ameye
2023-07-27 06:41:42 -04:00
parent 5a06cfa2fd
commit f8ddfcc81d
+2 -2
View File
@@ -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");
}