Skip to content

Commit

Permalink
接口传参判空,防止空指针
Browse files Browse the repository at this point in the history
  • Loading branch information
Airry666 committed Jul 18, 2020
1 parent 30d9581 commit 04ba6b2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private void inner_httpsNetWorkRequest(final DataCallBack callBack, final String
String key = entry.getKey();
String value = entry.getValue();
if (value == null) {
value = null;
value = "";
}
if (key.equals("sign")) {
value = Utils.byte2hex(alga.digest());
Expand Down Expand Up @@ -306,7 +306,7 @@ private RequestBody getRequestBody(Map<String, String> map) {
String key = entry.getKey();
String value = entry.getValue();
if (value == null) {
value = null;
value = "";
}
if (key.equals("sign")) {
value = Utils.byte2hex(alga.digest());
Expand Down

0 comments on commit 04ba6b2

Please sign in to comment.