diff --git a/wrenchboard/src/shared_tool/account.cc b/wrenchboard/src/shared_tool/account.cc index de1f8d3e..6a56df25 100644 --- a/wrenchboard/src/shared_tool/account.cc +++ b/wrenchboard/src/shared_tool/account.cc @@ -634,7 +634,7 @@ long WrenchBoardMobileSendUserWallet(CVars in, CVars &out) { REQ_LONG(in, "member_id", 1, -1); out["total_record"] = "0"; const PGresult *res; - res = pgsql_query("SELECT w.amount,c.*,w.amount AS current_balance,c.country " + res = pgsql_query("SELECT w.amount,c.*,w.amount AS current_balance,c.country,w.transfer_limit " "FROM members_wallet w LEFT JOIN currency c ON c.code=w.currency " "WHERE w.member_id = %lu ORDER BY c.lorder DESC", in["member_id"].Long()); @@ -667,6 +667,10 @@ long WrenchBoardMobileSendUserWallet(CVars in, CVars &out) { snprintf(vname, sizeof (vname), "country_%05d", i); out[vname] = rec["country"]; + + snprintf(vname, sizeof (vname), "transfer_limit_%05d", i); + out[vname] = rec["transfer_limit"]; + } } ret = PHP_API_OK; diff --git a/www-api/app/Models/ResultFormatter.php b/www-api/app/Models/ResultFormatter.php index 5774ddbd..59c0abd9 100644 --- a/www-api/app/Models/ResultFormatter.php +++ b/www-api/app/Models/ResultFormatter.php @@ -689,7 +689,8 @@ class ResultFormatter extends Model "description" => $out["description_${key}"], "action_type" => $out["action_type_${key}"], "code" => $out["code_${key}"], - "country" => $out["country_${key}"] + "country" => $out["country_${key}"], + "transfer_limit" => $out["transfer_limit_${key}"], ); } break;