我正在使用aync http 库来发出请求,并且我需要将一些数据发布到服务中,其中包括一个布尔参数。
但是布尔参数没有放在我的参数中。
不能像这样在 RequestParams 中放置一个布尔值吗?
RequestParams params = new RequestParams();
params.put("comment", comment);
params.put("extra", false);
我正在使用aync http 库来发出请求,并且我需要将一些数据发布到服务中,其中包括一个布尔参数。
但是布尔参数没有放在我的参数中。
不能像这样在 RequestParams 中放置一个布尔值吗?
RequestParams params = new RequestParams();
params.put("comment", comment);
params.put("extra", false);