校验点赞Id 点赞Id要先判断是否36位并且最后4位是数字 @param likeId 点赞Id @return
(String likeId)
| 71 | * @return |
| 72 | */ |
| 73 | public boolean verificationLikeId(String likeId){ |
| 74 | if(likeId != null && !"".equals(likeId.trim())){ |
| 75 | if(likeId.length() == 36){ |
| 76 | String after_userId = likeId.substring(likeId.length()-4, likeId.length()); |
| 77 | boolean verification = Verification.isPositiveIntegerZero(after_userId);//数字 |
| 78 | if(verification){ |
| 79 | return true; |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | return false; |
| 84 | } |
| 85 | |
| 86 | |
| 87 |
nothing calls this directly
no test coverage detected