@Override
 protected void onPostExecute(Object result) {
   super.onPostExecute(result);
   res = super.res;
   if (res != null) {
     if (AppConstants.RESPONSE_SUCCESS.equals(res.getResponseStatus().getCode())) {
       // Success
       if (res.isNeedPay()) {
         FinanceFundsApp.params.put(
             PlatformsActivity.TOTALFEE_KEY,
             Double.valueOf(etAmount.getText().toString().trim()));
         FinanceFundsApp.params.put(PlatformsActivity.PAYCODE_KEY, res.getPayCode());
         startActivity(new Intent(AppendDepositActivity.this, PlatformsActivity.class));
       } else {
         FinanceFundsApp.params.put(
             AppConstants.PAYMENT_RESULT_KEY, AppConstants.PAYMENT_SUCCESS);
         startActivity(new Intent(AppendDepositActivity.this, PaymentResultActivity.class));
       }
     } else {
       // 服务器异常
       Toast.makeText(
               FinanceFundsApp.getContext(),
               res.getResponseStatus().getMessage(),
               Toast.LENGTH_SHORT)
           .show();
     }
   } else {
     // Error
     Toast.makeText(FinanceFundsApp.getContext(), R.string.network_exception, Toast.LENGTH_SHORT)
         .show();
   }
 }
 /**
  * @Title: checkParams @Description: 参数校验
  *
  * @param: @return
  * @return: boolean
  * @throws
  */
 private boolean checkParams() {
   boolean isParamsChecked = true;
   if (TextUtils.isEmpty(etAmount.getText())) {
     isParamsChecked = false;
     Toast.makeText(FinanceFundsApp.getContext(), "请正确填写追加金额.", Toast.LENGTH_SHORT).show();
   }
   return isParamsChecked;
 }
 @Override
 protected void onPostExecute(Object result) {
   super.onPostExecute(result);
   res = super.res;
   if (res != null) {
     if (AppConstants.RESPONSE_SUCCESS.equals(res.getResponseStatus().getCode())) {
       // Success
       Double appendAmount = Double.valueOf(etAmount.getText().toString().trim());
       FinanceFundsApp.params.put(AppConstants.NEED_PAY_AMOUNT_KEY, appendAmount);
       FinanceFundsApp.params.put(
           AppConstants.PAYMENT_TYPE_KEY, AppConstants.PAYMENT_APPENDDEPOSIT);
       Double balance = (Double) FormatUtils.formatNull(res.getBalanceMoney(), Double.class);
       FinanceFundsApp.params.put(AppConstants.BALANCE_KEY, balance);
       if (balance > 0) {
         // 有余额,跳转是否使用余额追加保证金
         startActivity(new Intent(AppendDepositActivity.this, BalanceChooseActivity.class));
       } else {
         // 没有余额,直接跳转支付方式
         Long financeId = (Long) FinanceFundsApp.params.get(APPEND_DEPOSIT_FINANCEID_KEY);
         financeId = (Long) FormatUtils.formatNull(financeId, Long.class);
         new DepositTask(AppendDepositActivity.this, false, financeId, appendAmount, false)
             .executeOnExecutor(FinanceFundsApp.poor);
       }
     } else {
       // 服务器异常
       Toast.makeText(
               FinanceFundsApp.getContext(),
               res.getResponseStatus().getMessage(),
               Toast.LENGTH_SHORT)
           .show();
     }
   } else {
     // Error
     Toast.makeText(FinanceFundsApp.getContext(), R.string.network_exception, Toast.LENGTH_SHORT)
         .show();
   }
 }