v1.0.3
This commit is contained in:
@@ -37,7 +37,7 @@ public class LyricController {
|
||||
// @PostMapping("/correct")
|
||||
// public long correctRequest(CaptchaData<LyricCorrectRequest> request) {
|
||||
// if (IOSize.MB * 120 < request.getData().getFile().getSize()) {
|
||||
// throw new TimiException(TimiCode.ARG_BAD).msgKey("lyric.correct_request.too_big");
|
||||
// throw new TimiException(TimiCode.ARG_BAD, "lyric.correct_request.too_big");
|
||||
// }
|
||||
// return correctService.correctRequest(request.getData());
|
||||
// }
|
||||
|
||||
+1
-1
@@ -135,7 +135,7 @@ public class LyricServiceImplement extends AbstractEntityService<Lyric, String>
|
||||
return lyric;
|
||||
} catch (Exception e) {
|
||||
log.error("fetch lyric fail", e);
|
||||
throw new TimiException(TimiCode.ERROR).msgKey("无法获取歌词");
|
||||
throw new TimiException(TimiCode.ERROR, "无法获取歌词");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user