private void requestSetRemark() { HashMap<String, String> map = new HashMap<String, String>(); map.put("id", appDto.getId() + ""); map.put("remark", remarkEditText.getText().toString().trim()); map.put("handle", String.valueOf(handle)); map.put("stars", this.seekBar.getProgress() + ""); JSONRequest request = new JSONRequest( this, RequestEnum.HOUSE_RESERVE_REMARK, map, new Response.Listener<String>() { @Override public void onResponse(String jsonObject) { try { ObjectMapper objectMapper = new ObjectMapper(); objectMapper.configure( DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false); JavaType type = objectMapper .getTypeFactory() .constructParametricType(AppMessageDto.class, String.class); AppMessageDto<String> dto = objectMapper.readValue(jsonObject, type); if (dto.getStatus() == AppResponseStatus.SUCCESS) { Toast.makeText(KeeperRemarkActivity.this, "设置成功", Toast.LENGTH_SHORT).show(); KeeperRemarkActivity.this.finish(); } else { Toast.makeText(KeeperRemarkActivity.this, dto.getMsg(), Toast.LENGTH_SHORT) .show(); } } catch (Exception e) { e.printStackTrace(); } } }); this.addToRequestQueue(request, "正在提交数据..."); }