MCPcopy Create free account
hub / github.com/diyhi/bbs / verificationLikeId

Method verificationLikeId

src/main/java/cms/component/like/LikeConfig.java:73–84  ·  view source on GitHub ↗

校验点赞Id 点赞Id要先判断是否36位并且最后4位是数字 @param likeId 点赞Id @return

(String likeId)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

isPositiveIntegerZeroMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected