Fix bug with truncated lone string responses for Android/Scala clients

This commit is contained in:
xhh
2015-08-07 10:40:42 +08:00
parent 29e8a8f573
commit c7f595fc91
4 changed files with 4 additions and 4 deletions

View File

@@ -216,7 +216,7 @@ public class ApiInvoker {
}
else if(String.class.equals(cls)) {
if(json != null && json.startsWith("\"") && json.endsWith("\"") && json.length() > 1)
return json.substring(1, json.length() - 2);
return json.substring(1, json.length() - 1);
else
return json;
}