隐藏account_no

master
yuan 7 years ago
parent 3395120f3c
commit 431ad49dbc

@ -1200,7 +1200,9 @@ public class RetailAppServiceImp implements RetailAppService {
public JSONObject bankAccountInfo(JSONObject device) { public JSONObject bankAccountInfo(JSONObject device) {
String clientType = device.getString("client_type"); String clientType = device.getString("client_type");
deviceSupport.findRegister(clientType); deviceSupport.findRegister(clientType);
return clientManager.getBankAccountByClientId(device.getIntValue("client_id")); JSONObject bankInfo = clientManager.getBankAccountByClientId(device.getIntValue("client_id"));
bankInfo.put("account_no","***"+ StringUtils.substring(bankInfo.getString("account_no"), -4));
return bankInfo;
} }
@Override @Override

@ -25,6 +25,7 @@ import au.com.royalpay.payment.tools.permission.wechat.WechatMapping;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.ui.Model; import org.springframework.ui.Model;
import org.springframework.validation.Errors; import org.springframework.validation.Errors;
@ -267,7 +268,9 @@ public class PartnerViewController {
@PartnerMapping(value = "/bank_account", method = RequestMethod.GET) @PartnerMapping(value = "/bank_account", method = RequestMethod.GET)
@ResponseBody @ResponseBody
public JSONObject getClientBankAccount(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject account) { public JSONObject getClientBankAccount(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject account) {
return clientManager.listClientBankAccounts(null, account.getString("client_moniker")); JSONObject bankInfo = clientManager.listClientBankAccounts(null, account.getString("client_moniker"));
bankInfo.put("account_no","***"+ StringUtils.substring(bankInfo.getString("account_no"), -4));
return bankInfo;
} }
@PartnerMapping(value = "/rates", method = RequestMethod.GET) @PartnerMapping(value = "/rates", method = RequestMethod.GET)

Loading…
Cancel
Save