if(dataList.get(position).get(“status”).equals(“2.0”)) {}else {
// 修改状态并刷新
RestClient.builder()
.params(“opinionId”,dataList.get(position).get(“opinionId”))
.url(IpConfig.APP_ID+“/feedBackApp/editStatus”)
.success(new ISuccess() {
@Override
public void onSuccess(String response) {
Result result = new Result<>();
Type type1 = new TypeToken<Result>() {}.getType();
result = new Gson().fromJson(response, type1);
Log.i(“请求数据:”,result.toString());
if(result.getStatus().equals(“200”)) {
initData();
ToastUtils.showShort(getApplication(),“已查看”);
}else {
ToastUtils.showShort(getApplication(),“错误!”);
}
}
})
.failure(new IFailure() {
@Override
public void onFailure() {
}
}).build().post();
}
}