修改了请求接口的bug

This commit is contained in:
董宏宇
2020-10-23 21:17:44 +08:00
parent d952f4b2a3
commit 4cb0b212c7

View File

@@ -596,16 +596,7 @@ public class V2XRefreshModel {
String helpId) {
if (mV2XApiService != null) {
final Map<String, Object> map = new ParamsProvider.Builder(mContext).build();
String json = new StringBuilder()
.append("{")
.append("\"id\":").append(id)
.append(",")
.append("\"sn\":").append(Utils.getSn())
.append(",")
.append("\"status\":").append(status)
.append(",")
.append("\"helpId\":").append(helpId)
.append("}").toString();
String json = "{" + "\"id\":\"" + id + "\"," + "\"sn\":\"" + Utils.getSn() + "\"," + "\"status\":" + status + "," + "\"helpId\":\"" + helpId + "\"}";
map.put("data", json);
mV2XApiService.manualMarkingTrafficJam(map).subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())