mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-08 13:27:46 +00:00
update 优化 !pr164 代码结构与修复一些问题
This commit is contained in:
@@ -21,6 +21,11 @@ public class NicknameTranslationImpl implements TranslationInterface<String> {
|
||||
|
||||
@Override
|
||||
public String translation(Object key, String other) {
|
||||
return remoteUserService.selectNicknameById(Long.valueOf(String.valueOf(key)));
|
||||
if (key instanceof Long id) {
|
||||
return remoteUserService.selectNicknameByIds(id.toString());
|
||||
} else if (key instanceof String ids) {
|
||||
return remoteUserService.selectNicknameByIds(ids);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user