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

Method getAvatarPath

src/main/java/cms/model/user/User.java:135–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133
134 //头像路径动态生成
135 public String getAvatarPath() {
136 if(this.avatarPath == null || this.avatarPath.trim().isEmpty()){
137 if(this.getRegistrationDate() != null){
138 DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
139
140 String date = this.getRegistrationDate().format(formatter);
141
142 //头像路径
143 this.avatarPath = "file/avatar/" + date +"/";
144 }
145 }
146 return avatarPath;
147 }
148}

Callers 15

tokenRenewalMethod · 0.95
getUserLoginLogListMethod · 0.95
getPointLogListMethod · 0.95
getPointLogDetailMethod · 0.95
searchUsetMethod · 0.95
queryUserMethod · 0.95
getUserDetailsMethod · 0.95
getUserTopicMethod · 0.95
getUserCommentMethod · 0.95
getUserCommentReplyMethod · 0.95
getUserQuestionMethod · 0.95

Calls 2

formatMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected