手续费金额修改
This commit is contained in:
@@ -81,7 +81,7 @@ public class TransferAccountsActivity extends BaseActivity {
|
||||
viewBinding = ActivityTransferAccountsBinding.inflate(getLayoutInflater());
|
||||
setContentView(viewBinding.getRoot());
|
||||
isJinBi = getIntent().getBooleanExtra("type", isJinBi);
|
||||
feeRate = isJinBi ? DataUtils.getLocUserInfo().getCashFeeRate() : DataUtils.getLocUserInfo().getSilverFeeRate();
|
||||
feeRate = isJinBi ? DataUtils.getLocUserInfo().getCashFeeRate() / 100 : DataUtils.getLocUserInfo().getSilverFeeRate() / 100;
|
||||
initView();
|
||||
initListeners();
|
||||
}
|
||||
@@ -350,7 +350,7 @@ public class TransferAccountsActivity extends BaseActivity {
|
||||
maps.put("substationId", IMUIKitConfig.SUBSTATIONID);
|
||||
maps.put("payVerifyCode", type);
|
||||
maps.put("receiptType", 1);
|
||||
maps.put("feeAmount", (Integer.parseInt(viewBinding.shouxufeiTv.getText().toString())) * 100); //手续费金额
|
||||
maps.put("feeAmount", (Integer.parseInt(viewBinding.shouxufeiTv.getText().toString())) * 100); //手续费金额
|
||||
maps.put("feeRate", feeRate); //费率
|
||||
|
||||
Api.getInstance().transferMoney(maps)
|
||||
@@ -519,8 +519,8 @@ public class TransferAccountsActivity extends BaseActivity {
|
||||
return;
|
||||
}
|
||||
int inputAmount = Integer.parseInt(inputStr);
|
||||
int shouxufei = (int)(Math.ceil(inputAmount * feeRate))/100;
|
||||
int rateAmount = inputAmount+shouxufei;
|
||||
int shouxufei = (int) (Math.ceil(inputAmount * feeRate));
|
||||
int rateAmount = inputAmount + shouxufei;
|
||||
viewBinding.shouxufeiTv.setText(String.valueOf(shouxufei));
|
||||
viewBinding.totaljineTv.setText(String.valueOf(rateAmount));
|
||||
int currentYue = (int) (Math.floor(isJinBi ? (walletBean.getGoldCoin() / 100f) : (walletBean.getSilverCoin() / 100f)));
|
||||
|
||||
Reference in New Issue
Block a user