Skip to content

Commit 53ce19c

Browse files
committed
fix(user): change exception type for avatar update frequency limit
1 parent 60577ea commit 53ce19c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flow-client/src/main/java/com/ligg/flowclient/service/impl/UserServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ private void checkAvatarUploadLimit(Long userId) {
279279
if (ttl > 0) {
280280
long minutes = ttl / 60;
281281
long seconds = ttl % 60;
282-
throw new RateLimitExceededException(
282+
throw new IllegalArgumentException(
283283
"头像更新过于频繁,请 %d 分 %d 秒后再试".formatted(minutes, seconds)
284284
);
285285
}

0 commit comments

Comments
 (0)