diff --git a/ruoyi-gateway/src/main/java/com/ruoyi/gateway/constant/MessagesConstant.java b/ruoyi-gateway/src/main/java/com/ruoyi/gateway/constant/MessagesConstant.java index 2f59a0c..5763dbc 100644 --- a/ruoyi-gateway/src/main/java/com/ruoyi/gateway/constant/MessagesConstant.java +++ b/ruoyi-gateway/src/main/java/com/ruoyi/gateway/constant/MessagesConstant.java @@ -52,7 +52,7 @@ public class MessagesConstant { String msg=en_msg; ServerHttpRequest request = exchange.getRequest(); if (request.getHeaders().containsKey(MessagesConstant.HEADER_KEY)) { - String zh = exchange.getRequest().getHeaders().getFirst(MessagesConstant.Language_ZH); + String zh = exchange.getRequest().getHeaders().getFirst(MessagesConstant.HEADER_KEY); if (MessagesConstant.Language_ZH.equals(zh)) { msg = zh_msg; } else {