Browse Source

校验修改

master
La123123 1 week ago
parent
commit
77758dca35
  1. 9
      im-platform/src/main/java/com/bx/implatform/controller/LoginController.java

9
im-platform/src/main/java/com/bx/implatform/controller/LoginController.java

@ -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) {

Loading…
Cancel
Save