From 87e4861733ea96326a4f0bf1bb22326b382b046b Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 23 Jun 2024 10:11:12 -0400 Subject: [PATCH] wallet found --- wrenchboard/src/shared_tool/account.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrenchboard/src/shared_tool/account.cc b/wrenchboard/src/shared_tool/account.cc index 42bf8fda..3936d79a 100644 --- a/wrenchboard/src/shared_tool/account.cc +++ b/wrenchboard/src/shared_tool/account.cc @@ -2416,7 +2416,7 @@ long WrenchTestWalletCapability(CVars in, CVars &out){ } else{ ret = load_db_record(out, "SELECT id AS wallet_id, action_type FROM currency WHERE country ='%s'", in["country"].c_str()); - if ( ret > 0 ){ + if ( ret >= 0 && out["wallet_id"].Long() > 0 ){ out["wallet_available_status"] = "WALLET_AVAILABLE"; out["wallet_country_status"] = "USER_COUNTRY_WALLET_ENABLED"; out["wallet_action_type"] = out["action_type"];