|
|
@@ -25,7 +25,6 @@ import com.sheep.gamegroup.util.CommonUtil;
|
|
|
import com.sheep.gamegroup.util.DataUtil;
|
|
|
import com.sheep.gamegroup.util.Jump2View;
|
|
|
import com.sheep.gamegroup.util.ListUtil;
|
|
|
-import com.sheep.gamegroup.util.LogUtil;
|
|
|
import com.sheep.gamegroup.util.UMConfigUtils;
|
|
|
import com.sheep.gamegroup.util.ViewUtil;
|
|
|
import com.sheep.gamegroup.view.adapter.WithdrawalAdapter;
|
|
|
@@ -205,15 +204,14 @@ public class WithdrawalAct extends BaseActivity implements WithdrawalContract.Vi
|
|
|
@Override
|
|
|
public void updateBalanceView(BaseMessage baseMessage) {
|
|
|
hideProgress();
|
|
|
- WithdrawAmountCountEntity entity = baseMessage.getData(WithdrawAmountCountEntity.class);
|
|
|
- balanceAmount = entity.amount;
|
|
|
- withdrawCount = entity.count;
|
|
|
+ JSONObject json = JSONObject.parseObject(baseMessage.getData().toString());
|
|
|
+ balanceAmount = json.getFloat("amount");
|
|
|
+ withdrawCount = json.getInteger("count");
|
|
|
setBalanceAmount();
|
|
|
showWithdrawServiceCharge();
|
|
|
}
|
|
|
|
|
|
private void showWithdrawServiceCharge() {
|
|
|
- LogUtil.logE("已提现: " + balanceAmount+" 次");
|
|
|
try {
|
|
|
float money = Float.parseFloat(wlLists.get(select).getGridViewEntity().getValue());
|
|
|
if (withdrawCount < 2) {
|
|
|
@@ -232,7 +230,6 @@ public class WithdrawalAct extends BaseActivity implements WithdrawalContract.Vi
|
|
|
|
|
|
//显示可以提现金额
|
|
|
private void setBalanceAmount() {
|
|
|
- LogUtil.logE("可提现: " + balanceAmount);
|
|
|
String sr = "可提现金额 <font color='#ff2d4b'><big>" + NumberFormatUtils.retainMost2(balanceAmount) + "</big></font> 元";
|
|
|
withdrawal_click_bindname_tv.setText(Html.fromHtml(sr));
|
|
|
}
|
|
|
@@ -270,9 +267,4 @@ public class WithdrawalAct extends BaseActivity implements WithdrawalContract.Vi
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static class WithdrawAmountCountEntity {
|
|
|
- public float amount = 0f;
|
|
|
- public int count = 0;
|
|
|
- }
|
|
|
-
|
|
|
}
|