|
|
|
@ -98,10 +98,13 @@ public class LoginController { |
|
|
|
//如果有换行符,替换为空
|
|
|
|
str = str.replace("\n", ""); |
|
|
|
|
|
|
|
//翻译目标国家
|
|
|
|
String country = jsonObject.getStr("country","zh"); |
|
|
|
String trans = ""; |
|
|
|
//翻译的国家对象
|
|
|
|
String country = jsonObject.getStr("country"); |
|
|
|
if(country == null || ObjectUtil.isEmpty(country)){ |
|
|
|
country = "zh"; |
|
|
|
} |
|
|
|
|
|
|
|
String trans = ""; |
|
|
|
//如果代理有配置,则使用代理的配置
|
|
|
|
String translateType = settingService.translateType(); |
|
|
|
trans = switch (translateType) { |
|
|
|
|