Map<String,Object> res = new HashMap<String, Object>();
res.put("param1", param1);
res.put("param2", param2);
JSONObject jsonObject = JSONObject.fromObject(res); 将参数map转为json格式
String param = PlusCut.getInstance().plus(jsonObject.toString()); 将参数加密
JSONObject json = new JSONObject();
json.put("message", param);
String restful = HttpRequestUtils.sendPost(Url, json.toString()); 将参数传到接口中运行获取结果
JSONObject Json = JSONObject.fromObject(restful); 结果转为json格式
plus加密 cut解密的方式传输 json
接口与后台的传值使用 json