Skip to content

Commit

Permalink
增加toJSONString方法
Browse files Browse the repository at this point in the history
  • Loading branch information
刘志永 committed Aug 17, 2021
1 parent 48b6be2 commit b65a731
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/src/main/java/me/eleme/anubis/sdk/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ public String sign(java.util.Map<String, String> systemParams, java.util.Map<Str
return Sha256Util.getsha256(secretKey + content.toString());
}

public String toJsonString(Map<String, ?> param) throws Exception{
return JsonUtil.toJsonString(param);
}

private Map<String, String> getSortedMap(Map<String, String> systemParams, Map<String, ?> bizParams,
Map<String, String> textParams) throws Exception {

Expand Down

0 comments on commit b65a731

Please sign in to comment.