okhttp PUT请求时

int count=1;
                Map map = new HashMap<>();
                map.put("commodityId",mResult.getCommodityId());
                map.put("count",count);

                String s1 = new Gson().toJson(map);
                String data = "["+s1+"]";
                Map map1 = new HashMap<>();
                map1.put("data", data);

你可能感兴趣的:(okhttp PUT请求时)