token 问题

This commit is contained in:
2024-04-08 09:52:44 +08:00
parent 42c54ca731
commit b27818d5e9
3 changed files with 2 additions and 8 deletions

View File

@@ -226,12 +226,6 @@ public class JSONUtil {
return new JSONObject(sortedMap);
}
public static void main(String[] args) {
String str = "{\"openId\": \"or1l864NBOoJZhC5x_yeziZ26j6c\",\"num\": 0,\"type\": \"sub\",\"userSign\": \"66a4e4464d4e4ffda8ff729ed0e28d63\"}";
JSONObject jsonObject = JSON.parseObject(str);
System.out.println(sortJSONObject(jsonObject,CacheMap.map));
System.out.println(MD5Util.encrypt(sortJSONObject(jsonObject,CacheMap.map).toJSONString()));
}
}