Commit 1697b1751f54049caeb0d58e2752bb477614cdc2
1 parent
461de1d762
Exists in
master
and in
1 other branch
update code
Showing 1 changed file with 2 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/FunvCommonUtil.java
View file @
1697b17
... | ... | @@ -493,13 +493,12 @@ |
493 | 493 | |
494 | 494 | public static String spitd(String str) |
495 | 495 | { |
496 | - if(str.indexOf(",") > 0) | |
496 | + if(str.lastIndexOf(",") > 0) | |
497 | 497 | { |
498 | - return str.substring(0, str.indexOf(",")); | |
498 | + return str.substring(0, str.lastIndexOf(",")); | |
499 | 499 | } |
500 | 500 | return str; |
501 | 501 | } |
502 | - | |
503 | 502 | |
504 | 503 | } |