Showing
1 changed file
with
3 additions
and
3 deletions
@@ -86,9 +86,9 @@ public class MsgJavaApiHandler extends IJavaApiHadnler { | @@ -86,9 +86,9 @@ public class MsgJavaApiHandler extends IJavaApiHadnler { | ||
86 | .append("NAME:" + javaApiInfo.getApiName()).append(" , ") | 86 | .append("NAME:" + javaApiInfo.getApiName()).append(" , ") |
87 | .append("TYPE:" + javaApiInfo.getServiceType()).append(" , "); | 87 | .append("TYPE:" + javaApiInfo.getServiceType()).append(" , "); |
88 | 88 | ||
89 | - if(javaApiInfo.getApiUrlCustom()!=null&&javaApiInfo.getApiUrlCustom()==1){ | ||
90 | - msgBuilder.append("URL:" + javaApiInfo.getApiUrl()).append(" . "); | ||
91 | - }else{ | 89 | + if (javaApiInfo.getApiUrlCustom() != null && javaApiInfo.getApiUrlCustom() == 1) { |
90 | + msgBuilder.append("URL:" + javaApiInfo.getApiUrl().substring(0, javaApiInfo.getApiUrl().indexOf("?") - 1)).append(" . "); | ||
91 | + } else { | ||
92 | msgBuilder.append("IP:" + mObjectInfo.getMoHostIp()).append(" ."); | 92 | msgBuilder.append("IP:" + mObjectInfo.getMoHostIp()).append(" ."); |
93 | } | 93 | } |
94 | return msgBuilder.toString(); | 94 | return msgBuilder.toString(); |
-
Please register or login to post a comment