Tamicer / Novate

A safety client by Https for android, (Android网络框架,基于Retrofit和RxJava打造的链式网络库, 支持okhttp的调用风格,又兼容Retrofit API,并支持rxJava链式操作)
Apache License 2.0
1.43k stars 268 forks source link

参数含有 json字符串时 #98

Open ObliverSen opened 5 years ago

ObliverSen commented 5 years ago
    parameters.put("partNumber",mEtPartNum.getText().toString().trim());
    parameters.put("partNumber",mEtPartDrawingNum.getText().toString().trim());
    parameters.put("heaNumber",mEtFurnaceNum.getText().toString().trim());
    Map<String,String> map = new HashMap<>();
    map.put("empNo",et_operator.getText().toString().trim());
    String empNoJosn2 = JsonHelper.toJSON(map);
    Log.e("empNoJosn222","---->  "+empNoJosn2);
    parameters.put("operateUser",empNoJosn2);

请求之后 报400错误。 这个怎么设置支持json