Skip to content

Commit

Permalink
Fixed bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
lincanbin committed Nov 12, 2015
1 parent dfeedf3 commit 52aea90
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ public static String buildParameterString(Map<String, String> parameterMap, Bool
.append("&")
.append("SValue").append("=")
.append(MD5Util.md5(APIAddress.API_KEY + APIAddress.API_SECRET + currentTimeStamp));

if(loginRequired && CarbonForumApplication.isLoggedIn()){
parameterBuffer
.append("&")
Expand All @@ -293,11 +294,9 @@ public static String buildParameterString(Map<String, String> parameterMap, Bool
.append("&")
.append("AuthUserCode").append("=")
.append(CarbonForumApplication.userInfo.getString("UserCode", ""));
if (parameterMap != null) {
parameterBuffer.append("&");
}
}
if (parameterMap != null) {
parameterBuffer.append("&");
Iterator iterator = parameterMap.keySet().iterator();
String key = null;
String value = null;
Expand Down

0 comments on commit 52aea90

Please sign in to comment.