mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
update 优化 用户头像 改为存储 ossId 使用转换模块转为 url 展示
This commit is contained in:
@ -22,6 +22,8 @@ public class OssUrlTranslationImpl implements TranslationInterface {
|
||||
public String translation(Object key, String other) {
|
||||
if (key instanceof String ids) {
|
||||
return ossService.selectUrlByIds(ids);
|
||||
} else if (key instanceof Long id) {
|
||||
return ossService.selectUrlByIds(id.toString());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user