@Override protected void onSuccess(BaseReq request, BaseResp response) { super.onSuccess(request, response); dialog.dismiss(); // P1008Resp resp = (P1008Resp) response; // String code = resp.code; // String error = StatusCode.checkStatus(code); // if (error != null) { // if (StatusCode.USER_NOT_LOGIN.equals(error)) { // LoginUtil.reLogin(mActivity); // return; // } // ToastUtils.showToast(mActivity, R.string.create_order_fail); // return; // } if ("2".equals(organ)) { // 跳转到支付宝充值界面 } else if ("12".equals(organ)) { // 跳转到银联充值界面 } else if ("12".equals(organ)) { // 跳转到微信充值界面 } }
@Override protected void onError(int errorId) { super.onError(errorId); dialog.dismiss(); ToastUtils.showToast(mActivity, R.string.create_order_fail); }
@Override protected void onPostExecute() { super.onPostExecute(); dialog.dismiss(); }
@Override protected void onPreExecute() { super.onPreExecute(); dialog = DialogUtils.getProgressDialog(mActivity, R.string.creating_order); dialog.show(); }