Delete card fix

This commit is contained in:
CHIEFSOFT\ameye
2023-07-18 06:52:57 -04:00
parent 1b929e1982
commit c88c9d8266
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -482,7 +482,7 @@ long WrenchDeleteUsersCCard(CVars in, CVars &out) {
res = pgsql_query("SELECT id FROM creditcard WHERE member_id=%lu AND uid='%s' AND active = 1 ", in["member_id"].Long(), in["card_uid"].c_str());
if (res != NULL && pgsql_num_rows(res) > 0) {
pgsql_exec("UPDATE creditcard SET status=%lu WHERE member_id=%lu AND uid='%s' AND active = 1 ",delete_status, in["member_id"].Long(), in["card_uid"].c_str());
pgsql_exec("UPDATE creditcard SET active=%lu WHERE member_id=%lu AND uid='%s' AND active = 1 ",delete_status, in["member_id"].Long(), in["card_uid"].c_str());
out["status"] = "completed";
}
ret = PHP_API_OK;
+2 -1
View File
@@ -639,7 +639,8 @@ class ResultFormatter extends Model
$key = sprintf("%05d", $i);
$res["result_list"][] = array(
"name" => $out["name_${key}"],
"code" => $out["code_${key}"]
"code" => $out["code_${key}"],
"country" => 'NG',
);
}
break;