JSONObject messageJson = JSONObject.parseObject(message);
messageJson = messageJson.getJSONObject("message");
Iterator<String> ite = messageJson.keySet().iterator();
Map<String, Object> reqMap = new HashMap<>();
while (ite.hasNext()) {
String key = ite.next().toString();
Object value = messageJson.get(key);
reqMap.put(key, value);
}
JSONObject ecrypJson = (JSONObject)JSONObject.toJSON(respMap);
String message = EncryptionUtil.encrypt(ecrypJson.toString());
01-02
8463
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交