Fix abackend
This commit is contained in:
@@ -560,6 +560,7 @@ long WrenchRequestVirtualCard(CVars in, CVars &out) {
|
||||
long sid = insert_db_record(DBS_VALID, "members_card_request", "members_card_request_id_seq", x);
|
||||
if ( sid > 0 ){
|
||||
load_db_record(out, "SELECT id AS request_id, uid AS request_uid FROM members_card_request WHERE id = %lu ", sid);
|
||||
account_email(WRENCHBOARD_VIRTUAL_CARDADD, out, out);
|
||||
ret = PHP_API_OK;
|
||||
}
|
||||
|
||||
@@ -2511,7 +2512,7 @@ long WrenchTestWalletCapability(CVars in, CVars &out){
|
||||
out["wallet_country_status"] = "USER_NEED_UPDATE_PROFILE_COUNTRY";
|
||||
}
|
||||
else{
|
||||
ret = load_db_record(out, "SELECT id AS wallet_id, action_type FROM currency WHERE country ='%s'", in["country"].c_str());
|
||||
ret = load_db_record(out, "SELECT id AS wallet_id, action_type FROM currency WHERE country ='%s' LIMIT 1", in["country"].c_str());
|
||||
if ( ret >= 0 && out["wallet_id"].Long() > 0 ){
|
||||
out["wallet_available_status"] = "WALLET_AVAILABLE";
|
||||
out["wallet_country_status"] = "USER_COUNTRY_WALLET_ENABLED";
|
||||
|
||||
Reference in New Issue
Block a user