conditional error
This commit is contained in:
@@ -752,9 +752,10 @@ long WrenchBoardMobileSendMoney(CVars in, CVars &out){
|
||||
CVars wl;
|
||||
if ( load_db_record(wl, "SELECT w.*,c.country from members_wallet w LEFT join currency c ON c.code=w.currency"
|
||||
" WHERE c.country='%s' AND w.member_id=%lu AND w.uid='%s' ",in["TerminatingCountryCode"].c_str(), in["member_id"].Long(),in["wallet_uid"].c_str())> 0){
|
||||
if (in["amount"].Long() > wl["transfer_limit"].Long() )
|
||||
out["status_message"] = "tranfer_amount_limit_error";
|
||||
return ret;
|
||||
if (in["amount"].Long() > wl["transfer_limit"].Long() )
|
||||
{ out["status_message"] = "tranfer_amount_limit_error";
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user